From f704d46bd8cd6a7b8f5051765605812fa9b42a9d Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 15 Mar 2008 13:28:44 +0000 Subject: After 15 years of fun, fix Torek's ovbcopy() operation when copying shorts backwards. --- sys/arch/sparc/sparc/locore.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/sparc/locore.s b/sys/arch/sparc/sparc/locore.s index 68107d02452..87e255e60f4 100644 --- a/sys/arch/sparc/sparc/locore.s +++ b/sys/arch/sparc/sparc/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.75 2007/11/26 08:18:51 deraadt Exp $ */ +/* $OpenBSD: locore.s,v 1.76 2008/03/15 13:28:43 miod Exp $ */ /* $NetBSD: locore.s,v 1.73 1997/09/13 20:36:48 pk Exp $ */ /* @@ -4997,7 +4997,7 @@ Lback_fancy: dec 2, %o0 ! do { ldsh [%o0], %o4 ! src -= 2; dec 2, %o1 ! dst -= 2; - deccc 2, %o0 ! *(short *)dst = *(short *)src; + deccc 2, %o2 ! *(short *)dst = *(short *)src; bge 5b ! } while ((len -= 2) >= 0); sth %o4, [%o1] b Lback_mopb ! goto mop_up_byte; -- cgit v1.2.3