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