diff options
author | 2007-05-09 04:59:41 +0000 | |
---|---|---|
committer | 2007-05-09 04:59:41 +0000 | |
commit | 58d01de3ccffffd62dbec08d42e80cc9429250cb (patch) | |
tree | a1c24ac688d642d9499de355535d8adb28a5fc56 /sys | |
parent | typo in license found by ray; verified repair using my old archives... (diff) | |
download | wireguard-openbsd-58d01de3ccffffd62dbec08d42e80cc9429250cb.tar.xz wireguard-openbsd-58d01de3ccffffd62dbec08d42e80cc9429250cb.zip |
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 */ |