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 get rid of kernelbase



details:   https://anonhg.NetBSD.org/src/rev/1a2f49194a6b
branches:  trunk
changeset: 363938:1a2f49194a6b
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 16 14:14:51 2018 +0000

description:
get rid of kernelbase

diffstat:

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

diffs (49 lines):

diff -r 64cd6f86183b -r 1a2f49194a6b external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c
--- a/external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c Thu Aug 16 13:31:04 2018 +0000
+++ b/external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c Thu Aug 16 14:14:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dtrace_isa.c,v 1.9 2018/08/12 16:07:27 christos Exp $  */
+/*     $NetBSD: dtrace_isa.c,v 1.10 2018/08/16 14:14:51 christos Exp $ */
 
 /*
  * CDDL HEADER START
@@ -45,12 +45,6 @@
 uint32_t dtrace_fuword32_nocheck(void *);
 uint64_t dtrace_fuword64_nocheck(void *);
 
-#ifdef VM_MIN_KERNEL_ADDRESS_DEFAULT
-__strong_alias(kernelbase, vm_min_kernel_address)
-#else
-uintptr_t kernelbase = (uintptr_t)VM_MIN_KERNEL_ADDRESS;
-#endif
-
 #define INKERNEL(va) ((intptr_t)(va) < 0) /* XXX horror */
 
 struct amd64_frame {
diff -r 64cd6f86183b -r 1a2f49194a6b external/cddl/osnet/dev/dtrace/amd64/dtrace_subr.c
--- a/external/cddl/osnet/dev/dtrace/amd64/dtrace_subr.c        Thu Aug 16 13:31:04 2018 +0000
+++ b/external/cddl/osnet/dev/dtrace/amd64/dtrace_subr.c        Thu Aug 16 14:14:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dtrace_subr.c,v 1.10 2018/06/05 12:04:19 christos Exp $        */
+/*     $NetBSD: dtrace_subr.c,v 1.11 2018/08/16 14:14:51 christos Exp $        */
 
 /*
  * CDDL HEADER START
@@ -48,8 +48,6 @@
 #include <machine/cpu_counter.h>
 #include <machine/cpufunc.h>
 
-extern uintptr_t       kernelbase;
-
 int dtrace_invop(uintptr_t, struct trapframe *, uintptr_t);
 
 typedef struct dtrace_invop_hdlr {
@@ -117,7 +115,7 @@
 void
 dtrace_toxic_ranges(void (*func)(uintptr_t base, uintptr_t limit))
 {
-       (*func)(0, kernelbase);
+       (*func)(0, VM_MIN_KERNEL_ADDRESS);
 }
 
 static void



Home | Main Index | Thread Index | Old Index