summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-04 00:33:00 +0000
committerdg <dg@FreeBSD.org>1994-09-04 00:33:00 +0000
commita155a99a1523f61bb490f887124d752b770d880f (patch)
tree68ae7cebdc5480c771b0801c4e304e5f90f70e5c
parenta56c0e9d5c3eeeeca84b13bfd4c4a392da7b3e30 (diff)
downloadFreeBSD-src-a155a99a1523f61bb490f887124d752b770d880f.zip
FreeBSD-src-a155a99a1523f61bb490f887124d752b770d880f.tar.gz
Initialize eflags register - brought over from 1.1.5.
-rw-r--r--sys/amd64/amd64/locore.S9
-rw-r--r--sys/amd64/amd64/locore.s9
-rw-r--r--sys/i386/i386/locore.s9
3 files changed, 21 insertions, 6 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index a4e6ef4..58b165b 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -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
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index a4e6ef4..58b165b 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -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
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index a4e6ef4..58b165b 100644
--- a/sys/i386/i386/locore.s
+++ b/sys/i386/i386/locore.s
@@ -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
OpenPOWER on IntegriCloud