diff options
Diffstat (limited to 'v/riscv_test.h')
-rw-r--r-- | v/riscv_test.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/v/riscv_test.h b/v/riscv_test.h index 0dd3a1f..8ca9ffd 100644 --- a/v/riscv_test.h +++ b/v/riscv_test.h @@ -46,11 +46,7 @@ userstart: \ #define PGSHIFT 12 #define PGSIZE (1UL << PGSHIFT) -#ifdef __riscv64 -# define SIZEOF_TRAPFRAME_T 288 -#else -# define SIZEOF_TRAPFRAME_T 144 -#endif +#define SIZEOF_TRAPFRAME_T ((__riscv_xlen / 8) * 36) #ifndef __ASSEMBLER__ |