diff options
author | luoqi <luoqi@FreeBSD.org> | 1999-12-06 04:53:08 +0000 |
---|---|---|
committer | luoqi <luoqi@FreeBSD.org> | 1999-12-06 04:53:08 +0000 |
commit | 5c9244cd12f812687a0e1da3fa8fd69c320bdb42 (patch) | |
tree | 3d2bdc635a51af92e9000f2fe294d685906d5387 /sys/pc98 | |
parent | 5851b69ff706eaa8e3a487bdfbbf3fe0177ed46a (diff) | |
download | FreeBSD-src-5c9244cd12f812687a0e1da3fa8fd69c320bdb42.zip FreeBSD-src-5c9244cd12f812687a0e1da3fa8fd69c320bdb42.tar.gz |
User ldt sharing.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/i386/machdep.c | 12 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 12 |
2 files changed, 4 insertions, 20 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index f17e905..89cf0de 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -61,11 +61,11 @@ #include <sys/signalvar.h> #include <sys/kernel.h> #include <sys/linker.h> +#include <sys/malloc.h> #include <sys/proc.h> #include <sys/buf.h> #include <sys/reboot.h> #include <sys/callout.h> -#include <sys/malloc.h> #include <sys/mbuf.h> #include <sys/msgbuf.h> #include <sys/sysent.h> @@ -1019,15 +1019,7 @@ setregs(p, entry, stack, ps_strings) #ifdef USER_LDT /* was i386_user_cleanup() in NetBSD */ - if (pcb->pcb_ldt) { - if (pcb == curpcb) { - lldt(_default_ldt); - currentldt = _default_ldt; - } - kmem_free(kernel_map, (vm_offset_t)pcb->pcb_ldt, - pcb->pcb_ldt_len * sizeof(union descriptor)); - pcb->pcb_ldt_len = (int)pcb->pcb_ldt = 0; - } + user_ldt_free(pcb); #endif bzero((char *)regs, sizeof(struct trapframe)); diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index f17e905..89cf0de 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -61,11 +61,11 @@ #include <sys/signalvar.h> #include <sys/kernel.h> #include <sys/linker.h> +#include <sys/malloc.h> #include <sys/proc.h> #include <sys/buf.h> #include <sys/reboot.h> #include <sys/callout.h> -#include <sys/malloc.h> #include <sys/mbuf.h> #include <sys/msgbuf.h> #include <sys/sysent.h> @@ -1019,15 +1019,7 @@ setregs(p, entry, stack, ps_strings) #ifdef USER_LDT /* was i386_user_cleanup() in NetBSD */ - if (pcb->pcb_ldt) { - if (pcb == curpcb) { - lldt(_default_ldt); - currentldt = _default_ldt; - } - kmem_free(kernel_map, (vm_offset_t)pcb->pcb_ldt, - pcb->pcb_ldt_len * sizeof(union descriptor)); - pcb->pcb_ldt_len = (int)pcb->pcb_ldt = 0; - } + user_ldt_free(pcb); #endif bzero((char *)regs, sizeof(struct trapframe)); |