diff options
Diffstat (limited to 'include/kernel/riscv.h')
| -rw-r--r-- | include/kernel/riscv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kernel/riscv.h b/include/kernel/riscv.h index 257c54f..4b3d323 100644 --- a/include/kernel/riscv.h +++ b/include/kernel/riscv.h @@ -398,3 +398,5 @@ typedef uint64 *pagetable_t; // 512 PTEs // Sv39, to avoid having to sign-extend virtual addresses // that have the high bit set. #define MAXVA (1L << (9 + 9 + 9 + 12 - 1)) +#define TRAMPOLINE (MAXVA - PGSIZE) +#define TRAPFRAME (TRAMPOLINE - PGSIZE)
\ No newline at end of file |
