From 7ececbe2818510a8acaa2a2e513085c768b14d15 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sat, 27 Dec 2025 21:56:42 +0800 Subject: feat: Implement the first user program of the lume OS --- include/kernel/riscv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/kernel/riscv.h') 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 -- cgit v1.2.3