Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/boot/xxboot Variable "from" must be in first bl...



details:   https://anonhg.NetBSD.org/src/rev/68744524c3e9
branches:  trunk
changeset: 488155:68744524c3e9
user:      ragge <ragge%NetBSD.org@localhost>
date:      Mon Jun 19 20:05:17 2000 +0000

description:
Variable "from" must be in first block read from disk, otherwise it will be
overwritten on non-VMB machines.

diffstat:

 sys/arch/vax/boot/xxboot/start.s |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 14bce8177247 -r 68744524c3e9 sys/arch/vax/boot/xxboot/start.s
--- a/sys/arch/vax/boot/xxboot/start.s  Mon Jun 19 19:49:51 2000 +0000
+++ b/sys/arch/vax/boot/xxboot/start.s  Mon Jun 19 20:05:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: start.s,v 1.6 2000/06/17 01:00:17 matt Exp $ */
+/*     $NetBSD: start.s,v 1.7 2000/06/19 20:05:17 ragge Exp $ */
 /*
  * Copyright (c) 1995 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -103,6 +103,10 @@
        .long   (SISIZE + SILOAD + SIOFF)       # sum of previous 3 
 
 
+       .align  2
+       .globl  _from
+_from: .long   0
+
 /*
  * After bootblock (LBN0) has been loaded into the first page 
  * of good memory by 11/750's ROM-code (transfer address
@@ -152,10 +156,6 @@
        movzbl  $2,_from        # Booted from subset-VMB
        brb     start_all
 
-       .align  2
-       .globl  _from
-_from: .long   0
-
 /*
  * start_all: stack already at RELOC, we save registers, move ourself
  * to RELOC and loads boot.



Home | Main Index | Thread Index | Old Index