diff options
author | Andrew Waterman <andrew@sifive.com> | 2016-12-06 17:02:41 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2016-12-06 17:02:56 -0800 |
commit | 9e219c9ca70459bfda9067d637bb8bf52c5f0326 (patch) | |
tree | 6755893cfb81544e3050d91d2a65ca0930dcb5ec /v/riscv_test.h | |
parent | ce70afbf50a203be04bc326326cfa75831fe7f5d (diff) | |
download | env-9e219c9ca70459bfda9067d637bb8bf52c5f0326.zip env-9e219c9ca70459bfda9067d637bb8bf52c5f0326.tar.gz env-9e219c9ca70459bfda9067d637bb8bf52c5f0326.tar.bz2 |
avoid non-standard predefined macros
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__ |