Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern/arch/vax blkset() used a register for set va...



details:   https://anonhg.NetBSD.org/src/rev/5a38e9029b61
branches:  trunk
changeset: 522470:5a38e9029b61
user:      ragge <ragge%NetBSD.org@localhost>
date:      Tue Feb 19 21:46:17 2002 +0000

description:
blkset() used a register for set value that get clobbered by movc5,
causing the set area to get unpredictable contents.

diffstat:

 sys/lib/libkern/arch/vax/blkset.S |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 8e69a9618a91 -r 5a38e9029b61 sys/lib/libkern/arch/vax/blkset.S
--- a/sys/lib/libkern/arch/vax/blkset.S Tue Feb 19 21:33:13 2002 +0000
+++ b/sys/lib/libkern/arch/vax/blkset.S Tue Feb 19 21:46:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: blkset.S,v 1.1 2002/02/10 22:04:51 thorpej Exp $       */
+/*     $NetBSD: blkset.S,v 1.2 2002/02/19 21:46:17 ragge Exp $ */
 
 /* 
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -35,15 +35,15 @@
 /*
  * Set a block of memory larger than 64K.
  */
-ENTRY(__blkset,R6)
+ENTRY(__blkset,R6|R7)
        movl    4(ap), r3
-       movl    8(ap), r1
+       movl    8(ap), r7
        movl    12(ap), r6
        jbr     2f
 1:     subl2   r0, r6 
-       movc5   $0,(r3),r1,r0,(r3)
+       movc5   $0,(r3),r7,r0,(r3)
 2:     movzwl  $65535,r0
        cmpl    r6, r0
        jgtr    1b
-       movc5   $0,(r3),r1,r6,(r3)
+       movc5   $0,(r3),r7,r6,(r3)
        ret



Home | Main Index | Thread Index | Old Index