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:
bde 1995-08-29 23:45:20 +00:00
parent c2e8124090
commit 7c601f8943
3 changed files with 3 additions and 36 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */