aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-09 19:24:12 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-09 19:24:12 +0300
commit89d7cf197b2cae130565467bdfad5d5ef5fed2dd (patch)
tree1cff68c3997bfa237b48aa499d45a3700d40e73e /arch/riscv64
parent298636079d912d0936f8156a609fe74b839c547b (diff)
downloadkmi-89d7cf197b2cae130565467bdfad5d5ef5fed2dd.tar.gz
kmi-89d7cf197b2cae130565467bdfad5d5ef5fed2dd.zip
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.
Diffstat (limited to 'arch/riscv64')
-rw-r--r--arch/riscv64/conf/init.c2
1 files changed, 1 insertions, 1 deletions
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"