mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-06-28 17:18:37 +00:00
include: Move RISCV_SCRATCH_xyz defines to sbi_scratch.h
The struct sbi_scratch related defines RISCV_SCRATCH_xyz should be in sbi_scratch.h so that we can keep these defines in-sync with changes in struct sbi_scratch. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
parent
24bfa687fc
commit
e0d6914b3c
3 changed files with 30 additions and 24 deletions
|
@ -69,18 +69,6 @@
|
|||
#error "Unexpected __SIZEOF_SHORT__"
|
||||
#endif
|
||||
|
||||
#define RISCV_SCRATCH_TMP0_OFFSET (0 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_FW_START_OFFSET (1 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_FW_SIZE_OFFSET (2 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_NEXT_ARG1_OFFSET (3 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_NEXT_ADDR_OFFSET (4 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_NEXT_MODE_OFFSET (5 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_WARMBOOT_ADDR_OFFSET (6 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_PLATFORM_ADDR_OFFSET (7 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_HARTID_TO_SCRATCH_OFFSET (8 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_IPI_TYPE_OFFSET (9 * __SIZEOF_POINTER__)
|
||||
#define RISCV_SCRATCH_SIZE 256
|
||||
|
||||
#define RISCV_PLATFORM_NAME_OFFSET (0x0)
|
||||
#define RISCV_PLATFORM_FEATURES_OFFSET (0x40)
|
||||
#define RISCV_PLATFORM_HART_COUNT_OFFSET (0x48)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue