Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 fix the build



details:   https://anonhg.NetBSD.org/src/rev/792f03850be0
branches:  trunk
changeset: 347317:792f03850be0
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 20 19:46:54 2016 +0000

description:
fix the build

diffstat:

 sys/arch/i386/i386/gdt.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r ce8d278a070a -r 792f03850be0 sys/arch/i386/i386/gdt.c
--- a/sys/arch/i386/i386/gdt.c  Sat Aug 20 19:45:20 2016 +0000
+++ b/sys/arch/i386/i386/gdt.c  Sat Aug 20 19:46:54 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gdt.c,v 1.54 2016/08/20 16:05:48 maxv Exp $    */
+/*     $NetBSD: gdt.c,v 1.55 2016/08/20 19:46:54 christos Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.54 2016/08/20 16:05:48 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.55 2016/08/20 19:46:54 christos Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_xen.h"
@@ -304,6 +304,7 @@
  *    the new slots.
  */
 
+#ifndef XEN
 static int
 gdt_get_slot(void)
 {
@@ -312,6 +313,7 @@
 
        return gdt_get_slot1(0);
 }
+#endif
 
 static int
 gdt_get_slot1(int which)
@@ -343,6 +345,7 @@
 /*
  * Deallocate a GDT slot, putting it on the free list.
  */
+#ifndef XEN
 static void
 gdt_put_slot(int slot)
 {
@@ -351,6 +354,7 @@
 
        gdt_put_slot1(slot, 0);
 }
+#endif
 
 static void
 gdt_put_slot1(int slot, int which)



Home | Main Index | Thread Index | Old Index