Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include/arm32 Cover the full kernel address ran...



details:   https://anonhg.NetBSD.org/src/rev/e3ae7750cecf
branches:  trunk
changeset: 1013484:e3ae7750cecf
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Aug 29 06:49:53 2020 +0000

description:
Cover the full kernel address range in KASAN

diffstat:

 sys/arch/arm/include/arm32/vmparam.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e95f5ddb1b14 -r e3ae7750cecf sys/arch/arm/include/arm32/vmparam.h
--- a/sys/arch/arm/include/arm32/vmparam.h      Sat Aug 29 05:46:34 2020 +0000
+++ b/sys/arch/arm/include/arm32/vmparam.h      Sat Aug 29 06:49:53 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.54 2020/07/11 06:46:19 skrll Exp $       */
+/*     $NetBSD: vmparam.h,v 1.55 2020/08/29 06:49:53 skrll Exp $       */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -127,7 +127,7 @@
 
 #ifdef KASAN
 #define VM_KERNEL_KASAN_BASE   0xc0000000
-#define VM_KERNEL_KASAN_SIZE   (VM_KERNEL_VM_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
+#define VM_KERNEL_KASAN_SIZE   (VM_KERNEL_ADDR_SIZE >> KASAN_SHADOW_SCALE_SHIFT)
 #define VM_KERNEL_KASAN_END    (VM_KERNEL_KASAN_BASE + VM_KERNEL_KASAN_SIZE)
 #define VM_KERNEL_VM_END       VM_KERNEL_KASAN_BASE
 #else
@@ -143,6 +143,7 @@
 #define VM_KERNEL_VM_BASE      0x90000000
 #endif
 
+#define VM_KERNEL_ADDR_SIZE    (VM_KERNEL_VM_END - KERNEL_BASE)
 #define VM_KERNEL_VM_SIZE      (VM_KERNEL_VM_END - VM_KERNEL_VM_BASE)
 
 #define VM_KERNEL_IO_ADDRESS   0xf0000000



Home | Main Index | Thread Index | Old Index