Initialize eflags register - brought over from 1.1.5.

This commit is contained in:
David Greenman 1994-09-04 00:33:00 +00:00
parent 8f84178bbe
commit 5c06a7a368
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2486
3 changed files with 21 additions and 6 deletions

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.21 1994/08/22 14:28:57 bde Exp $
* $Id: locore.s,v 1.22 1994/09/02 01:29:20 davidg Exp $
*/
/*
@ -146,13 +146,18 @@ NON_GPROF_ENTRY(btext)
jmp 1f
.org 0x500 /* space for BIOS variables */
1:
/* don't trust what the BIOS gives for eflags */
pushl $PSL_MBO
popfl
/*
* pass parameters on stack (howto, bootdev, unit, cyloffset, esym)
* note: (%esp) is return address of boot
* ( if we want to hold onto /boot, it's physical %esp up to _end)
*/
1: movl 4(%esp),%eax
movl 4(%esp),%eax
movl %eax,_boothowto-KERNBASE
movl 8(%esp),%eax
movl %eax,_bootdev-KERNBASE

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.21 1994/08/22 14:28:57 bde Exp $
* $Id: locore.s,v 1.22 1994/09/02 01:29:20 davidg Exp $
*/
/*
@ -146,13 +146,18 @@ NON_GPROF_ENTRY(btext)
jmp 1f
.org 0x500 /* space for BIOS variables */
1:
/* don't trust what the BIOS gives for eflags */
pushl $PSL_MBO
popfl
/*
* pass parameters on stack (howto, bootdev, unit, cyloffset, esym)
* note: (%esp) is return address of boot
* ( if we want to hold onto /boot, it's physical %esp up to _end)
*/
1: movl 4(%esp),%eax
movl 4(%esp),%eax
movl %eax,_boothowto-KERNBASE
movl 8(%esp),%eax
movl %eax,_bootdev-KERNBASE

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
* $Id: locore.s,v 1.21 1994/08/22 14:28:57 bde Exp $
* $Id: locore.s,v 1.22 1994/09/02 01:29:20 davidg Exp $
*/
/*
@ -146,13 +146,18 @@ NON_GPROF_ENTRY(btext)
jmp 1f
.org 0x500 /* space for BIOS variables */
1:
/* don't trust what the BIOS gives for eflags */
pushl $PSL_MBO
popfl
/*
* pass parameters on stack (howto, bootdev, unit, cyloffset, esym)
* note: (%esp) is return address of boot
* ( if we want to hold onto /boot, it's physical %esp up to _end)
*/
1: movl 4(%esp),%eax
movl 4(%esp),%eax
movl %eax,_boothowto-KERNBASE
movl 8(%esp),%eax
movl %eax,_bootdev-KERNBASE