Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Eliminate the only ASM reference to VM_...



details:   https://anonhg.NetBSD.org/src/rev/eeabb46dd11b
branches:  trunk
changeset: 365308:eeabb46dd11b
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Aug 12 06:11:47 2018 +0000

description:
Eliminate the only ASM reference to VM_MIN_KERNEL_ADDRESS. Rename the
value to VM_SPACE_SEP_HIGH32, it is now the highest 32bits of the first
va of the higher half of the address space (right after the canonical
hole).

diffstat:

 sys/arch/amd64/amd64/amd64_trap.S |  6 +++---
 sys/arch/amd64/amd64/genassym.cf  |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 351174cfa8b2 -r eeabb46dd11b sys/arch/amd64/amd64/amd64_trap.S
--- a/sys/arch/amd64/amd64/amd64_trap.S Sun Aug 12 06:02:38 2018 +0000
+++ b/sys/arch/amd64/amd64/amd64_trap.S Sun Aug 12 06:11:47 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amd64_trap.S,v 1.44 2018/07/14 14:29:40 maxv Exp $     */
+/*     $NetBSD: amd64_trap.S,v 1.45 2018/08/12 06:11:47 maxv Exp $     */
 
 /*
  * Copyright (c) 1998, 2007, 2008, 2017 The NetBSD Foundation, Inc.
@@ -192,7 +192,7 @@
 
        movl    $MSR_GSBASE,%ecx
        rdmsr
-       cmpl    $VM_MIN_KERNEL_ADDRESS_HIGH32,%edx
+       cmpl    $VM_SPACE_SEP_HIGH32,%edx
        jae     .Lkern_dbentry
 
        /* SS shadow, ignore the exception. */
@@ -265,7 +265,7 @@
 
        movl    $MSR_GSBASE,%ecx
        rdmsr
-       cmpl    $VM_MIN_KERNEL_ADDRESS_HIGH32,%edx
+       cmpl    $VM_SPACE_SEP_HIGH32,%edx
        jae     .Lnoswapgs
 
        swapgs
diff -r 351174cfa8b2 -r eeabb46dd11b sys/arch/amd64/amd64/genassym.cf
--- a/sys/arch/amd64/amd64/genassym.cf  Sun Aug 12 06:02:38 2018 +0000
+++ b/sys/arch/amd64/amd64/genassym.cf  Sun Aug 12 06:11:47 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genassym.cf,v 1.68 2018/03/30 10:01:36 maxv Exp $
+#      $NetBSD: genassym.cf,v 1.69 2018/08/12 06:11:47 maxv Exp $
 
 #
 # Copyright (c) 1998, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -367,7 +367,7 @@
 define PGOFSET                 PGOFSET
 define PGSHIFT                 PGSHIFT
 
-define VM_MIN_KERNEL_ADDRESS_HIGH32    (VM_MIN_KERNEL_ADDRESS >> 32)
+define VM_SPACE_SEP_HIGH32     (0xFFFF800000000000 >> 32)
 
 define RESCHED_KPREEMPT        RESCHED_KPREEMPT
 



Home | Main Index | Thread Index | Old Index