Reset the entire PSL, not just part of it.

This commit is contained in:
mycroft 1994-12-03 14:55:51 +00:00
parent dadc0f95cf
commit 5c3d80060d
1 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.99 1994/12/02 03:02:49 mycroft Exp $ */ /* $NetBSD: locore.s,v 1.100 1994/12/03 14:55:51 mycroft Exp $ */
#undef DIAGNOSTIC #undef DIAGNOSTIC
#define DIAGNOSTIC #define DIAGNOSTIC
@ -186,15 +186,12 @@ start: movw $0x1234,0x472 # warm boot
addl $(KERNBASE),%eax addl $(KERNBASE),%eax
movl %eax,_esym-KERNBASE movl %eax,_esym-KERNBASE
/* Find out our CPU type. */ /* First, reset the PSL. */
pushl $PSL_MBO
/* First, clear the alignment check and identification flags. */
pushfl
popl %eax
andl $~(PSL_AC|PSL_ID),%eax
pushl %eax
popfl popfl
/* Find out our CPU type. */
try386: /* Try to toggle alignment check flag; does not exist on 386. */ try386: /* Try to toggle alignment check flag; does not exist on 386. */
pushfl pushfl
popl %eax popl %eax