summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-09-04 17:57:52 +0000
committerkettenis <kettenis@openbsd.org>2020-09-04 17:57:52 +0000
commit21f7e7582855a5d42e8abdce66aef6fafd1908c5 (patch)
tree685238fb319acd67ef78e5e1a63612f70b3040d9
parentMake the kernel address space a bit bigger. (diff)
downloadwireguard-openbsd-21f7e7582855a5d42e8abdce66aef6fafd1908c5.tar.xz
wireguard-openbsd-21f7e7582855a5d42e8abdce66aef6fafd1908c5.zip
Restrict the size of the page table to 2G such that it never occupies more
than 8 SLB entries.
-rw-r--r--sys/arch/powerpc64/include/pte.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/include/pte.h b/sys/arch/powerpc64/include/pte.h
index cbc26be8f27..a496b91bb78 100644
--- a/sys/arch/powerpc64/include/pte.h
+++ b/sys/arch/powerpc64/include/pte.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pte.h,v 1.5 2020/07/14 17:03:13 kettenis Exp $ */
+/* $OpenBSD: pte.h,v 1.6 2020/09/04 17:57:52 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -71,7 +71,7 @@ struct slb {
#define USER_ADDR 0xcfffffff00000000ULL
#define USER_ESID (USER_ADDR >> ADDR_ESID_SHIFT)
-#define SEGMENT_SIZE (256 * 1024 * 1024)
+#define SEGMENT_SIZE (256 * 1024 * 1024ULL)
#define SEGMENT_MASK (SEGMENT_SIZE - 1)
#endif /* _MACHINE_PTE_H_ */