Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/include Add #ifdef _KERNEL, vaddr_t does not ...



details:   https://anonhg.NetBSD.org/src/rev/cbb4d71f0d29
branches:  trunk
changeset: 994249:cbb4d71f0d29
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Oct 28 14:12:16 2018 +0000

description:
Add #ifdef _KERNEL, vaddr_t does not exist in userland, and we don't want
externs anyway.

diffstat:

 sys/arch/amd64/include/vmparam.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 58ad5e894647 -r cbb4d71f0d29 sys/arch/amd64/include/vmparam.h
--- a/sys/arch/amd64/include/vmparam.h  Sun Oct 28 13:56:21 2018 +0000
+++ b/sys/arch/amd64/include/vmparam.h  Sun Oct 28 14:12:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.47 2018/08/12 10:50:35 maxv Exp $        */
+/*     $NetBSD: vmparam.h,v 1.48 2018/10/28 14:12:16 maxv Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -133,10 +133,12 @@
 #define VM_MAX_KERNEL_ADDRESS_DEFAULT  0xffffc00000000000
 #endif
 
+#ifdef _KERNEL
 extern vaddr_t vm_min_kernel_address;
 extern vaddr_t vm_max_kernel_address;
 #define VM_MIN_KERNEL_ADDRESS  vm_min_kernel_address
 #define VM_MAX_KERNEL_ADDRESS  vm_max_kernel_address
+#endif
 
 /*
  * The address to which unspecified mapping requests default



Home | Main Index | Thread Index | Old Index