diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-08-03 04:45:55 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-08-03 04:45:55 +0000 |
commit | 6f3fe88fd66db0cafe6379d43fbfd038f3e92ead (patch) | |
tree | 34299a345b46e02da95daf3f672327a79021a89f /sys/arch/sparc64 | |
parent | 834b5f7857fbb0f4f01a208919286b37432b3236 (diff) |
Make sure VM_MAXUSER_ADDRESS is aligned to a page boundary, as MI code
relies upon this; sparc64 turned out to be the only platform where this
was not the case.
help, diff, and commit message from Miod Vallat
"makes sense" kettenis@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/include/vmparam.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/vmparam.h b/sys/arch/sparc64/include/vmparam.h index c5815de9b3a..42c9075482e 100644 --- a/sys/arch/sparc64/include/vmparam.h +++ b/sys/arch/sparc64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.32 2015/11/01 20:10:00 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.33 2021/08/03 04:45:54 semarie Exp $ */ /* $NetBSD: vmparam.h,v 1.18 2001/05/01 02:19:19 thorpej Exp $ */ /* @@ -102,7 +102,7 @@ */ #define VM_MIN_ADDRESS ((vaddr_t)PAGE_SIZE) #define VM_MAX_ADDRESS ((vaddr_t)-1) -#define VM_MAXUSER_ADDRESS ((vaddr_t)-1) +#define VM_MAXUSER_ADDRESS ((vaddr_t)-PAGE_SIZE) /* map PIE into the first quarter of the address space before hole */ #define VM_PIE_MIN_ADDR PAGE_SIZE |