diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2025-12-27 21:56:42 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2025-12-27 21:56:42 +0800 |
| commit | 7ececbe2818510a8acaa2a2e513085c768b14d15 (patch) | |
| tree | d884b6ad1b7e28bc22528b8433a80456fa1f7895 /include/kernel/riscv.h | |
| parent | be71d44b9dfcf65fba3394fbd3dc2b3e06962897 (diff) | |
| download | lume-7ececbe2818510a8acaa2a2e513085c768b14d15.tar.gz lume-7ececbe2818510a8acaa2a2e513085c768b14d15.tar.xz | |
feat: Implement the first user program of the lume OS
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 |
