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 handle variable kernel ...



details:   https://anonhg.NetBSD.org/src/rev/4954bc3a8967
branches:  trunk
changeset: 992044:4954bc3a8967
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 12 16:07:27 2018 +0000

description:
handle variable kernel vm min address

diffstat:

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

diffs (21 lines):

diff -r d68ea6a3f9d6 -r 4954bc3a8967 external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c
--- a/external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c Sun Aug 12 16:00:41 2018 +0000
+++ b/external/cddl/osnet/dev/dtrace/amd64/dtrace_isa.c Sun Aug 12 16:07:27 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dtrace_isa.c,v 1.8 2018/07/27 07:32:59 maxv Exp $      */
+/*     $NetBSD: dtrace_isa.c,v 1.9 2018/08/12 16:07:27 christos Exp $  */
 
 /*
  * CDDL HEADER START
@@ -45,7 +45,11 @@
 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 */
 



Home | Main Index | Thread Index | Old Index