diff options
Diffstat (limited to 'arch/riscv64')
| -rw-r--r-- | arch/riscv64/conf/init.c | 2 | ||||
| -rw-r--r-- | arch/riscv64/config.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/arch/riscv64/conf/init.c b/arch/riscv64/conf/init.c index c4e8064..03fdc64 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" diff --git a/arch/riscv64/config.h b/arch/riscv64/config.h index 952c0ca..d686ed9 100644 --- a/arch/riscv64/config.h +++ b/arch/riscv64/config.h @@ -51,8 +51,9 @@ */ #define CSTACK_PAGE 248UL -/** User virtual memory space start. */ -#define UVMEM_START (SZ_4K) +/** User virtual memory space start. Should essentially always be the start of + * the NULL page, which is marked reserved in the address space by \ref init_uvmem().*/ +#define UVMEM_START (0) /** User virtual memory space end. */ #define UVMEM_END (SZ_256G - SZ_8G) |
