Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Simplify the conditions. Fixes compilation ...



details:   https://anonhg.NetBSD.org/src/rev/947f07710967
branches:  trunk
changeset: 365494:947f07710967
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Aug 18 08:45:55 2018 +0000

description:
Simplify the conditions. Fixes compilation of native amd64 without direct
map.

diffstat:

 sys/arch/x86/x86/pmap.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r febeb7ca48bd -r 947f07710967 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sat Aug 18 08:30:43 2018 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sat Aug 18 08:45:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.302 2018/08/12 15:31:01 maxv Exp $  */
+/*     $NetBSD: pmap.c,v 1.303 2018/08/18 08:45:55 maxv Exp $  */
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -157,7 +157,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.302 2018/08/12 15:31:01 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.303 2018/08/18 08:45:55 maxv Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -1375,8 +1375,7 @@
 }
 #endif
 
-#if defined(__HAVE_PCPU_AREA) || defined(__HAVE_DIRECT_MAP) || \
-    (defined(XEN) && defined(__x86_64__))
+#ifdef __x86_64__
 static size_t
 pmap_pagetree_nentries_range(vaddr_t startva, vaddr_t endva, size_t pgsz)
 {
@@ -1398,7 +1397,7 @@
 }
 #endif
 
-#if defined(__HAVE_DIRECT_MAP) || (defined(XEN) && defined(__x86_64__))
+#ifdef __x86_64__
 vaddr_t slotspace_rand(int, size_t, size_t);
 
 /*



Home | Main Index | Thread Index | Old Index