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:
Poul-Henning Kamp 1994-11-06 22:18:45 +00:00
parent f0e1ab7bc7
commit 89c8eae117
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4217
3 changed files with 18 additions and 3 deletions

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* 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
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
* and started the kernel. This is used to detect how we get the

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* 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
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
* and started the kernel. This is used to detect how we get the

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* 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
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
* and started the kernel. This is used to detect how we get the