diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2022-03-22 06:47:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2022-03-22 06:47:39 +0000 |
commit | 1692bd4042b535ec07ea50c27c13a2489ac34f0f (patch) | |
tree | 57fd18710b1bee25013ffc2f2bc0bc743a779966 /sys/arch | |
parent | 0e027f2f6504f60c8101e19108e0819e4fba2550 (diff) |
Change VM_MIN_ADDRESS to PAGE_SIZE to forbid mapping anything at virtual
address zero, as done on all other platforms.
ok deraadt@ kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/riscv64/include/vmparam.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/riscv64/include/vmparam.h b/sys/arch/riscv64/include/vmparam.h index 16858dc63c3..c9e63887d63 100644 --- a/sys/arch/riscv64/include/vmparam.h +++ b/sys/arch/riscv64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.5 2021/07/02 10:42:22 kettenis Exp $ */ +/* $OpenBSD: vmparam.h,v 1.6 2022/03/22 06:47:38 miod Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -111,8 +111,7 @@ * VM_MIN_USER_ADDRESS and VM_MAX_USER_ADDRESS define the start and end of the * user address space. */ -// XXX OpenBSD/arm64 starts VM_MIN_ADDRESS from PAGE_SIZE. Why? -#define VM_MIN_ADDRESS (0x0000000000000000UL) +#define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE) #define VM_MAX_ADDRESS (0xffffffffffffffffUL) #define VM_MIN_KERNEL_ADDRESS (0xffffffc000000000UL) |