diff options
| author | Anup Patel <[email protected]> | 2020-03-14 09:57:45 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-03-19 09:02:23 +0530 |
| commit | 87a7ef7659e27cdd5ef9a639cd68cf628be3d2d3 (patch) | |
| tree | ac6ddd1dad09a1521dc8c439a7b1a6eca966c9da /lib/utils/sys/objects.mk | |
| parent | 3f8d754c2c7f2937b10013ea2866d7e7ebfee60b (diff) | |
lib: sbi_scratch: Introduce HART id to scratch table
Instead of calling hartid_to_scratch() callback every time when
we want sbi_scratch pointer from HART id, we create a table of
sbi_scratch pointers and use that to get sbi_scratch pointer.
As a result of HART id to scratch table, the conversion of
HART id to sbi_scratch pointer is just 2-3 instructions which
was 9 instructions previously.
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/utils/sys/objects.mk')
0 files changed, 0 insertions, 0 deletions
