MFi386: sys/i386/i386/machdep.c revisions 1.481 and 1.482
This commit is contained in:
parent
0876f23dd1
commit
175300ac14
@ -103,6 +103,7 @@
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/pc/bios.h>
|
||||
#include <machine/pcb_ext.h> /* pcb.h included via sys/user.h */
|
||||
#include <machine/proc.h>
|
||||
#include <machine/globals.h>
|
||||
#ifdef PERFMON
|
||||
#include <machine/perfmon.h>
|
||||
@ -893,8 +894,8 @@ setregs(td, entry, stack, ps_strings)
|
||||
struct trapframe *regs = td->td_frame;
|
||||
struct pcb *pcb = td->td_pcb;
|
||||
|
||||
if (pcb->pcb_ldt)
|
||||
user_ldt_free(pcb);
|
||||
if (td->td_proc->p_md.md_ldt)
|
||||
user_ldt_free(td);
|
||||
|
||||
bzero((char *)regs, sizeof(struct trapframe));
|
||||
regs->tf_eip = entry;
|
||||
@ -976,7 +977,9 @@ cpu_setregs(void)
|
||||
unsigned int cr0;
|
||||
|
||||
cr0 = rcr0();
|
||||
#ifdef SMP
|
||||
cr0 |= CR0_NE; /* Done by npxinit() */
|
||||
#endif
|
||||
cr0 |= CR0_MP | CR0_TS; /* Done at every execve() too. */
|
||||
#ifndef I386_CPU
|
||||
cr0 |= CR0_WP | CR0_AM;
|
||||
|
@ -103,6 +103,7 @@
|
||||
#include <machine/md_var.h>
|
||||
#include <machine/pc/bios.h>
|
||||
#include <machine/pcb_ext.h> /* pcb.h included via sys/user.h */
|
||||
#include <machine/proc.h>
|
||||
#include <machine/globals.h>
|
||||
#ifdef PERFMON
|
||||
#include <machine/perfmon.h>
|
||||
@ -893,8 +894,8 @@ setregs(td, entry, stack, ps_strings)
|
||||
struct trapframe *regs = td->td_frame;
|
||||
struct pcb *pcb = td->td_pcb;
|
||||
|
||||
if (pcb->pcb_ldt)
|
||||
user_ldt_free(pcb);
|
||||
if (td->td_proc->p_md.md_ldt)
|
||||
user_ldt_free(td);
|
||||
|
||||
bzero((char *)regs, sizeof(struct trapframe));
|
||||
regs->tf_eip = entry;
|
||||
@ -976,7 +977,9 @@ cpu_setregs(void)
|
||||
unsigned int cr0;
|
||||
|
||||
cr0 = rcr0();
|
||||
#ifdef SMP
|
||||
cr0 |= CR0_NE; /* Done by npxinit() */
|
||||
#endif
|
||||
cr0 |= CR0_MP | CR0_TS; /* Done at every execve() too. */
|
||||
#ifndef I386_CPU
|
||||
cr0 |= CR0_WP | CR0_AM;
|
||||
|
Loading…
x
Reference in New Issue
Block a user