mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-27 12:15:56 +00:00
Initialize %fs and %gs from %ds.
This seems to stabilize the APM-bios on my Gateway Handbook, and it makes sense in general too.
This commit is contained in:
parent
f0e1ab7bc7
commit
89c8eae117
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4217
|
@ -34,7 +34,7 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||||
* $Id: locore.s,v 1.42 1994/10/30 20:09:12 bde Exp $
|
* $Id: locore.s,v 1.43 1994/10/31 17:20:15 joerg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -178,6 +178,11 @@ NON_GPROF_ENTRY(btext)
|
||||||
pushl $PSL_MBO
|
pushl $PSL_MBO
|
||||||
popfl
|
popfl
|
||||||
|
|
||||||
|
/* Don't trust what the BIOS gives for %fs and %gs. */
|
||||||
|
mov %ds, %ax
|
||||||
|
mov %ax, %fs
|
||||||
|
mov %ax, %gs
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This code is called in different ways depending on what loaded
|
* This code is called in different ways depending on what loaded
|
||||||
* and started the kernel. This is used to detect how we get the
|
* and started the kernel. This is used to detect how we get the
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||||
* $Id: locore.s,v 1.42 1994/10/30 20:09:12 bde Exp $
|
* $Id: locore.s,v 1.43 1994/10/31 17:20:15 joerg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -178,6 +178,11 @@ NON_GPROF_ENTRY(btext)
|
||||||
pushl $PSL_MBO
|
pushl $PSL_MBO
|
||||||
popfl
|
popfl
|
||||||
|
|
||||||
|
/* Don't trust what the BIOS gives for %fs and %gs. */
|
||||||
|
mov %ds, %ax
|
||||||
|
mov %ax, %fs
|
||||||
|
mov %ax, %gs
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This code is called in different ways depending on what loaded
|
* This code is called in different ways depending on what loaded
|
||||||
* and started the kernel. This is used to detect how we get the
|
* and started the kernel. This is used to detect how we get the
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||||
* $Id: locore.s,v 1.42 1994/10/30 20:09:12 bde Exp $
|
* $Id: locore.s,v 1.43 1994/10/31 17:20:15 joerg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -178,6 +178,11 @@ NON_GPROF_ENTRY(btext)
|
||||||
pushl $PSL_MBO
|
pushl $PSL_MBO
|
||||||
popfl
|
popfl
|
||||||
|
|
||||||
|
/* Don't trust what the BIOS gives for %fs and %gs. */
|
||||||
|
mov %ds, %ax
|
||||||
|
mov %ax, %fs
|
||||||
|
mov %ax, %gs
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This code is called in different ways depending on what loaded
|
* This code is called in different ways depending on what loaded
|
||||||
* and started the kernel. This is used to detect how we get the
|
* and started the kernel. This is used to detect how we get the
|
||||||
|
|
Loading…
Reference in a new issue