mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 21:33:04 +00:00
Remove relocation of Crtat. Drivers already relocate it (somewhat
bogusly). We used to undo the driver relocation here before doing a somewhat less bogus relocation. The result was a null relocation here.
This commit is contained in:
parent
b52d94c100
commit
154042d309
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10425
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||
* $Id: locore.s,v 1.52 1995/04/16 10:12:16 davidg Exp $
|
||||
* $Id: locore.s,v 1.53 1995/06/28 04:42:25 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -659,17 +659,6 @@ begin: /* now running relocated at KERNBASE where the system is linked to run */
|
||||
addl $KERNBASE,%edx /* add virtual base */
|
||||
movl %edx,_atdevbase
|
||||
|
||||
#include "sc.h"
|
||||
#include "vt.h"
|
||||
#if NSC > 0 || NVT > 0
|
||||
/* XXX: can't scinit relocate Crtat relative to atdevbase itself? */
|
||||
.globl _Crtat /* XXX - locore should not know about */
|
||||
movl _Crtat,%eax /* variables of device drivers (pccons)! */
|
||||
subl $(KERNBASE+0xA0000),%eax
|
||||
addl %eax,%edx
|
||||
movl %edx,_Crtat
|
||||
#endif
|
||||
|
||||
/* set up bootstrap stack - 48 bytes */
|
||||
movl $_kstack+UPAGES*NBPG-4*12,%esp /* bootstrap stack end location */
|
||||
xorl %eax,%eax /* mark end of frames */
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||
* $Id: locore.s,v 1.52 1995/04/16 10:12:16 davidg Exp $
|
||||
* $Id: locore.s,v 1.53 1995/06/28 04:42:25 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -659,17 +659,6 @@ begin: /* now running relocated at KERNBASE where the system is linked to run */
|
||||
addl $KERNBASE,%edx /* add virtual base */
|
||||
movl %edx,_atdevbase
|
||||
|
||||
#include "sc.h"
|
||||
#include "vt.h"
|
||||
#if NSC > 0 || NVT > 0
|
||||
/* XXX: can't scinit relocate Crtat relative to atdevbase itself? */
|
||||
.globl _Crtat /* XXX - locore should not know about */
|
||||
movl _Crtat,%eax /* variables of device drivers (pccons)! */
|
||||
subl $(KERNBASE+0xA0000),%eax
|
||||
addl %eax,%edx
|
||||
movl %edx,_Crtat
|
||||
#endif
|
||||
|
||||
/* set up bootstrap stack - 48 bytes */
|
||||
movl $_kstack+UPAGES*NBPG-4*12,%esp /* bootstrap stack end location */
|
||||
xorl %eax,%eax /* mark end of frames */
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)locore.s 7.3 (Berkeley) 5/13/91
|
||||
* $Id: locore.s,v 1.52 1995/04/16 10:12:16 davidg Exp $
|
||||
* $Id: locore.s,v 1.53 1995/06/28 04:42:25 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -659,17 +659,6 @@ begin: /* now running relocated at KERNBASE where the system is linked to run */
|
||||
addl $KERNBASE,%edx /* add virtual base */
|
||||
movl %edx,_atdevbase
|
||||
|
||||
#include "sc.h"
|
||||
#include "vt.h"
|
||||
#if NSC > 0 || NVT > 0
|
||||
/* XXX: can't scinit relocate Crtat relative to atdevbase itself? */
|
||||
.globl _Crtat /* XXX - locore should not know about */
|
||||
movl _Crtat,%eax /* variables of device drivers (pccons)! */
|
||||
subl $(KERNBASE+0xA0000),%eax
|
||||
addl %eax,%edx
|
||||
movl %edx,_Crtat
|
||||
#endif
|
||||
|
||||
/* set up bootstrap stack - 48 bytes */
|
||||
movl $_kstack+UPAGES*NBPG-4*12,%esp /* bootstrap stack end location */
|
||||
xorl %eax,%eax /* mark end of frames */
|
||||
|
Loading…
Reference in New Issue
Block a user