diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-03-23 12:03:51 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-03-23 12:03:51 +0000 |
commit | 42eaca3a0cebd3e0176b8a581c553ebf245251e4 (patch) | |
tree | 3ea66bd569ccbcd202ffe4d226b9a80982e2f0c7 | |
parent | 56c57906eecc84e24e6aa7232d952d97dbcf6bdd (diff) |
Fix ovbcopy() operation when copying shorts backwards, similar to sparc
locore.s r1.76
-rw-r--r-- | sys/arch/sparc64/sparc64/locore.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s index 84ddad3e9d1..cba2246ff49 100644 --- a/sys/arch/sparc64/sparc64/locore.s +++ b/sys/arch/sparc64/sparc64/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.124 2008/03/22 21:10:29 kettenis Exp $ */ +/* $OpenBSD: locore.s,v 1.125 2008/03/23 12:03:50 miod Exp $ */ /* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */ /* @@ -7399,7 +7399,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; |