Module Name:    src
Committed By:   ragge
Date:           Mon Mar 19 15:37:56 UTC 2018

Modified Files:
        src/sys/arch/vax/boot/common: srt0.S

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/vax/boot/common/srt0.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/boot/common/srt0.S
diff -u src/sys/arch/vax/boot/common/srt0.S:1.5 src/sys/arch/vax/boot/common/srt0.S:1.6
--- src/sys/arch/vax/boot/common/srt0.S:1.5	Mon May 22 17:00:19 2017
+++ src/sys/arch/vax/boot/common/srt0.S	Mon Mar 19 15:37:56 2018
@@ -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 @@ ALTENTRY(start)
 	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
 

Reply via email to