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/ab67f0f79d7d
branches: trunk
changeset: 347328:ab67f0f79d7d
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 21 08:30:22 2016 +0000
description:
fix the build.
diffstat:
sys/arch/amd64/amd64/gdt.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r a86bb854009a -r ab67f0f79d7d sys/arch/amd64/amd64/gdt.c
--- a/sys/arch/amd64/amd64/gdt.c Sun Aug 21 08:27:57 2016 +0000
+++ b/sys/arch/amd64/amd64/gdt.c Sun Aug 21 08:30:22 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gdt.c,v 1.30 2016/08/20 18:31:06 maxv Exp $ */
+/* $NetBSD: gdt.c,v 1.31 2016/08/21 08:30:22 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.30 2016/08/20 18:31:06 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.31 2016/08/21 08:30:22 christos Exp $");
#include "opt_multiprocessor.h"
#include "opt_xen.h"
@@ -64,7 +64,6 @@
int gdt_free; /* next free slot; terminated with GNULL_SEL */
void gdt_init(void);
-static void gdt_grow(void);
void
update_descriptor(void *tp, void *ep)
@@ -205,6 +204,7 @@
}
#endif
+#if !defined(XEN) || defined(USER_LDT)
/*
* Grow the GDT.
*/
@@ -239,7 +239,6 @@
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.
Home |
Main Index |
Thread Index |
Old Index