summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sbi/riscv_asm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/riscv_asm.h b/include/sbi/riscv_asm.h
index 516bf6f9..045310b5 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