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:
parent
af109ffd14
commit
3f91265a4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85695
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user