diff options
author | Anup Patel <anup.patel@wdc.com> | 2018-12-22 12:40:54 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2018-12-22 20:49:52 +0530 |
commit | 58ca525a7d35b2d4cd7045fd343fb6d85567f01d (patch) | |
tree | 01d947176b3f14ec1bb5c7487d1b725682bd68bd /include/sbi/riscv_asm.h | |
parent | 1cf7ec9e3bbf287fc9d601d2346b9e73fda40a84 (diff) |
firmware: Don't depend on PLAT_HART_COUNT and PLAT_HART_STACK_SIZE
The hart_count and hart_stack_size information is already available
in "struct sbi_platform" so we use that instead of depending on
PLAT_HART_COUNT and PLAT_HART_STACK_SIZE.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/riscv_asm.h')
-rw-r--r-- | include/sbi/riscv_asm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/riscv_asm.h b/include/sbi/riscv_asm.h index 516bf6f..045310b 100644 --- a/include/sbi/riscv_asm.h +++ b/include/sbi/riscv_asm.h @@ -81,6 +81,11 @@ #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) +#define RISCV_PLATFORM_HART_STACK_SIZE_OFFSET (0x4c) + #define RISCV_TRAP_REGS_zero 0 #define RISCV_TRAP_REGS_ra 1 #define RISCV_TRAP_REGS_sp 2 |