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/common Do not use movc3 to copy boot progr...



details:   https://anonhg.NetBSD.org/src/rev/311dc6c756ff
branches:  trunk
changeset: 321509:311dc6c756ff
user:      ragge <ragge%NetBSD.org@localhost>
date:      Mon Mar 19 15:37:56 2018 +0000

description:
Do not use movc3 to copy boot program, it may be larger than 64k.

diffstat:

 sys/arch/vax/boot/common/srt0.S |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r af57c3b70318 -r 311dc6c756ff sys/arch/vax/boot/common/srt0.S
--- a/sys/arch/vax/boot/common/srt0.S   Mon Mar 19 13:26:02 2018 +0000
+++ b/sys/arch/vax/boot/common/srt0.S   Mon Mar 19 15:37:56 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: srt0.S,v 1.5 2017/05/22 17:00:19 ragge Exp $ */
+/*     $NetBSD: srt0.S,v 1.6 2018/03/19 15:37:56 ragge Exp $ */
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -49,7 +49,9 @@
        movl    $_C_LABEL(start), %r3 # get where we want to be
        cmpl    %r1,%r3         # are we where we want to be?
        beql    relocated       # already relocated, skip copy
-       movc3   %r0,(%r1),(%r3) # copy
+1:     movb    (%r1)+,(%r3)+   # copy
+       sobgtr  %r0,1b
+
        subl3   $_C_LABEL(edata), $_C_LABEL(end), %r2
        movc5   $0,(%r3),$0,%r2,(%r3) # Zero bss
 



Home | Main Index | Thread Index | Old Index