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/powerpc Actually the right instruction ...



details:   https://anonhg.NetBSD.org/src/rev/d61c3117e6c1
branches:  trunk
changeset: 551026:d61c3117e6c1
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 27 17:37:43 2003 +0000

description:
Actually the right instruction to fill a half-word.
>From Juergen Hannken-Illjes hannken at eis dot cs dot tu-bs dot de

diffstat:

 sys/lib/libkern/arch/powerpc/memset.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1329716a9331 -r d61c3117e6c1 sys/lib/libkern/arch/powerpc/memset.S
--- a/sys/lib/libkern/arch/powerpc/memset.S     Wed Aug 27 16:27:35 2003 +0000
+++ b/sys/lib/libkern/arch/powerpc/memset.S     Wed Aug 27 17:37:43 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: memset.S,v 1.1 2003/08/10 21:17:09 matt Exp $ */
+/*     $NetBSD: memset.S,v 1.2 2003/08/27 17:37:43 matt Exp $ */
 
 /*-
  * Copyright (C) 2003  Matt Thomas <matt%3am-software.com@localhost>
@@ -80,7 +80,7 @@
                andi.   r_tmp, r_dst, 0x02
                beq     word_fill               /* aligned to word? */
 half_fill:
-               stw     r_val, 0(r_dst)
+               sth     r_val, 0(r_dst)
                addi    r_dst, r_dst, 2
                subi    r_len, r_len, 2         /* subtract halfword */
 



Home | Main Index | Thread Index | Old Index