summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-09 04:59:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-09 04:59:42 +0000
commite5e1bf81b470ed9761cfa779e4fe96f87fb6a2fe (patch)
tree395fdbe446c48ffb654be3ba4f9852d1acc92901 /sys
parentad266da2f3b26a1a9e104b13946dae0e7cb8c6aa (diff)
only supply ldt_alloc() and ldt_free() if USER_LDT
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/gdt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/gdt.c b/sys/arch/i386/i386/gdt.c
index c3c2cdf6c41..9a4f779d4f1 100644
--- a/sys/arch/i386/i386/gdt.c
+++ b/sys/arch/i386/i386/gdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt.c,v 1.24 2005/11/19 02:18:00 pedro Exp $ */
+/* $OpenBSD: gdt.c,v 1.25 2007/05/09 04:59:41 deraadt Exp $ */
/* $NetBSD: gdt.c,v 1.28 2002/12/14 09:38:50 junyoung Exp $ */
/*-
@@ -294,6 +294,7 @@ tss_free(int sel)
gdt_put_slot(IDXSEL(sel));
}
+#ifdef USER_LDT
/*
* Caller must have pmap locked for both of these functions.
*/
@@ -316,3 +317,4 @@ ldt_free(struct pmap *pmap)
gdt_put_slot(slot);
}
+#endif /* USER_LDT */