From 89d7cf197b2cae130565467bdfad5d5ef5fed2dd Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 9 Jul 2024 19:24:12 +0300 Subject: allow regions to have reserved areas + A reserved area is an area at the start of the region that should not be used unless explicitly asked for, for example null pages. As such, a small correction to my previous commit message: There's no danger in not locking req_mem() etc, as a null page will only be allocated when explicitly asked for. --- arch/riscv64/conf/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/riscv64/conf') diff --git a/arch/riscv64/conf/init.c b/arch/riscv64/conf/init.c index 03fdc64..c4e8064 100644 --- a/arch/riscv64/conf/init.c +++ b/arch/riscv64/conf/init.c @@ -273,7 +273,7 @@ static void sys_sleep() #define CSR_TIME "0xc01" #define csr_read(csr, \ - res) __asm__ volatile ("csrr %0, " csr : "=r" (res) :: "memory") + res) __asm__ volatile ("csrr %0, " csr : "=r" (res) :: "memory") #define CSR_CYCLE "0xc00" -- cgit v1.3