Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 fix the build.



details:   https://anonhg.NetBSD.org/src/rev/bafc64b83a16
branches:  trunk
changeset: 347311:bafc64b83a16
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 20 17:34:23 2016 +0000

description:
fix the build.

diffstat:

 sys/arch/amd64/amd64/gdt.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r df1bf7259ee5 -r bafc64b83a16 sys/arch/amd64/amd64/gdt.c
--- a/sys/arch/amd64/amd64/gdt.c        Sat Aug 20 17:09:34 2016 +0000
+++ b/sys/arch/amd64/amd64/gdt.c        Sat Aug 20 17:34:23 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gdt.c,v 1.27 2016/08/20 16:05:48 maxv Exp $    */
+/*     $NetBSD: gdt.c,v 1.28 2016/08/20 17:34:23 christos Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 2009 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.27 2016/08/20 16:05:48 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.28 2016/08/20 17:34:23 christos Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_xen.h"
@@ -65,8 +65,6 @@
 
 void gdt_init(void);
 static void gdt_grow(void);
-static int gdt_get_slot(void);
-static void gdt_put_slot(int);
 
 void
 update_descriptor(void *tp, void *ep)
@@ -235,6 +233,7 @@
        pmap_update(pmap_kernel());
 }
 
+#if !defined(XEN) || defined(USER_LDT)
 /*
  * Allocate a GDT slot as follows:
  * 1) If there are entries on the free list, use those.
@@ -292,6 +291,7 @@
        gdt[slot].sd_xx3 = gdt_free;
        gdt_free = slot;
 }
+#endif
 
 int
 tss_alloc(struct x86_64_tss *tss)



Home | Main Index | Thread Index | Old Index