Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Fix build w/o options SUN4V.



details:   https://anonhg.NetBSD.org/src/rev/9184d6b649e6
branches:  trunk
changeset: 810636:9184d6b649e6
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Tue Sep 08 13:18:06 2015 +0000

description:
Fix build w/o options SUN4V.

mdesc_get_len() and mdesc_init() are used outside of #ifdef SUN4V,
and eliminated by optimization if SUN4V isn't defined.

diffstat:

 sys/arch/sparc64/sparc64/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r bcd0d47da58b -r 9184d6b649e6 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Tue Sep 08 12:14:20 2015 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Tue Sep 08 13:18:06 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.298 2015/09/06 23:48:39 nakayama Exp $      */
+/*     $NetBSD: pmap.c,v 1.299 2015/09/08 13:18:06 nakayama Exp $      */
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.298 2015/09/06 23:48:39 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.299 2015/09/08 13:18:06 nakayama Exp $");
 
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
@@ -60,8 +60,8 @@
 #include <machine/bootinfo.h>
 #ifdef SUN4V
 #include <machine/hypervisor.h>
+#endif
 #include <machine/mdesc.h>
-#endif
 
 #include <sparc64/sparc64/cache.h>
 



Home | Main Index | Thread Index | Old Index