diff options
| -rw-r--r-- | sys/amd64/amd64/machdep.c | 5 | ||||
| -rw-r--r-- | sys/i386/i386/machdep.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 58c9cf7a672e..20a9a9929b48 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.203 1996/09/10 23:06:58 bde Exp $ + * $Id: machdep.c,v 1.204 1996/09/11 19:53:43 phk Exp $ */ #include "npx.h" @@ -1334,6 +1334,9 @@ init386(first) gdp->gd_p = 1; gdp->gd_hioffset = ((int) &IDTVEC(syscall)) >>16; + /* XXX does this work? */ + ldt[LBSDICALLS_SEL] = ldt[LSYS5CALLS_SEL]; + /* transfer to user mode */ _ucodesel = LSEL(LUCODE_SEL, SEL_UPL); diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 58c9cf7a672e..20a9a9929b48 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.203 1996/09/10 23:06:58 bde Exp $ + * $Id: machdep.c,v 1.204 1996/09/11 19:53:43 phk Exp $ */ #include "npx.h" @@ -1334,6 +1334,9 @@ init386(first) gdp->gd_p = 1; gdp->gd_hioffset = ((int) &IDTVEC(syscall)) >>16; + /* XXX does this work? */ + ldt[LBSDICALLS_SEL] = ldt[LSYS5CALLS_SEL]; + /* transfer to user mode */ _ucodesel = LSEL(LUCODE_SEL, SEL_UPL); |
