diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-09 04:59:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-09 04:59:42 +0000 |
commit | e5e1bf81b470ed9761cfa779e4fe96f87fb6a2fe (patch) | |
tree | 395fdbe446c48ffb654be3ba4f9852d1acc92901 /sys | |
parent | ad266da2f3b26a1a9e104b13946dae0e7cb8c6aa (diff) |
only supply ldt_alloc() and ldt_free() if USER_LDT
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/gdt.c | 4 |
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 */ |