summaryrefslogtreecommitdiffstats
path: root/sys/i386/svr4
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-02-23 01:25:02 +0000
committerpeter <peter@FreeBSD.org>2001-02-23 01:25:02 +0000
commit88a22127a8400148ac64930f4843800ec5ea843c (patch)
treeaaa218218d0222b010b83f5016331a051700c6e4 /sys/i386/svr4
parent028498d58b228bc46acb76c35b3c3bfd10a950b1 (diff)
downloadFreeBSD-src-88a22127a8400148ac64930f4843800ec5ea843c.zip
FreeBSD-src-88a22127a8400148ac64930f4843800ec5ea843c.tar.gz
Activate USER_LDT by default. The new thread libraries are going to
depend on this. The linux ABI emulator tries to use it for some linux binaries too. VM86 had a bigger cost than this and it was made default a while ago. Reviewed by: jhb, imp
Diffstat (limited to 'sys/i386/svr4')
-rw-r--r--sys/i386/svr4/svr4_machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/svr4/svr4_machdep.c b/sys/i386/svr4/svr4_machdep.c
index 231a9d8..00bb45a 100644
--- a/sys/i386/svr4/svr4_machdep.c
+++ b/sys/i386/svr4/svr4_machdep.c
@@ -503,7 +503,7 @@ svr4_sys_sysarch(p, v)
struct svr4_sys_sysarch_args *v;
{
struct svr4_sys_sysarch_args *uap = v;
-#ifdef USER_LDT
+#if 0 /* USER_LDT */
#if defined(__NetBSD__)
caddr_t sg = stackgap_init(p->p_emul);
#else
@@ -511,12 +511,13 @@ svr4_sys_sysarch(p, v)
#endif
int error;
#endif
+
switch (uap->op) {
case SVR4_SYSARCH_FPHW:
return 0;
case SVR4_SYSARCH_DSCR:
-#ifdef USER_LDT
+#if 0 /* USER_LDT */
#warning "USER_LDT doesn't work - are you sure you want this?"
{
struct i386_set_ldt_args sa, *sap;
OpenPOWER on IntegriCloud