mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-29 20:54:13 +01:00
Initialize eflags register - brought over from 1.1.5.
This commit is contained in:
parent
a56c0e9d5c
commit
a155a99a15
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user