Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dev/dtrace/amd64 Replace KERN_BASE by VM...



details:   https://anonhg.NetBSD.org/src/rev/f53ff912a1c4
branches:  trunk
changeset: 834089:f53ff912a1c4
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Jul 27 07:32:59 2018 +0000

description:
Replace KERN_BASE by VM_MIN_KERNEL_ADDRESS. Also add XXX on INKERNEL.

diffstat:

 external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r de4bb579a66b -r f53ff912a1c4 external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c
--- a/external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c Fri Jul 27 07:09:15 2018 +0000
+++ b/external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c Fri Jul 27 07:32:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dtrace_isa.c,v 1.7 2018/05/28 21:05:03 chs Exp $       */
+/*     $NetBSD: dtrace_isa.c,v 1.8 2018/07/27 07:32:59 maxv Exp $      */
 
 /*
  * CDDL HEADER START
@@ -45,9 +45,9 @@
 uint32_t dtrace_fuword32_nocheck(void *);
 uint64_t dtrace_fuword64_nocheck(void *);
 
-uintptr_t kernelbase = (uintptr_t)KERN_BASE;
+uintptr_t kernelbase = (uintptr_t)VM_MIN_KERNEL_ADDRESS;
 
-#define INKERNEL(va) ((intptr_t)(va) < 0)
+#define INKERNEL(va) ((intptr_t)(va) < 0) /* XXX horror */
 
 struct amd64_frame {
        struct amd64_frame      *f_frame;



Home | Main Index | Thread Index | Old Index