Don't set CR0_NE in cpu_setregs() for the SMP case, since setting it

is npx.c's job and setting it here breaks the edit-time option of not
setting it in npx.c.  (It is not set in the right places for the SMP
case, but always setting it here is harmless because there isn't even
an edit-time option to not set it.)
This commit is contained in:
Bruce Evans 2001-10-29 16:31:15 +00:00
parent af109ffd14
commit 3f91265a4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85695
2 changed files with 4 additions and 0 deletions

View File

@ -964,7 +964,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;

View File

@ -964,7 +964,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;