summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-03-15 13:28:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-03-15 13:28:44 +0000
commitf704d46bd8cd6a7b8f5051765605812fa9b42a9d (patch)
treeccbe42ce7e550965c62f2a629fb72e849c7ccf73 /sys/arch
parent045897390a30c1bd01306cae492b18beecafb726 (diff)
After 15 years of fun, fix Torek's ovbcopy() operation when copying shorts
backwards.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/locore.s4
1 files 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;