Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Fix a typo in bswr2rb() which resul...
details: https://anonhg.NetBSD.org/src/rev/a11337b0935b
branches: trunk
changeset: 556281:a11337b0935b
user: scw <scw%NetBSD.org@localhost>
date: Thu Dec 11 23:52:25 2003 +0000
description:
Fix a typo in bswr2rb() which resulted in an 8-bit load instead 16-bit.
Pointed out by Derek Godfrey.
diffstat:
sys/arch/powerpc/powerpc/pio_subr.S | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r bddf2b0246b2 -r a11337b0935b sys/arch/powerpc/powerpc/pio_subr.S
--- a/sys/arch/powerpc/powerpc/pio_subr.S Thu Dec 11 22:45:06 2003 +0000
+++ b/sys/arch/powerpc/powerpc/pio_subr.S Thu Dec 11 23:52:25 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pio_subr.S,v 1.5 2003/09/08 22:37:01 kleink Exp $ */
+/* $NetBSD: pio_subr.S,v 1.6 2003/12/11 23:52:25 scw Exp $ */
/*
* Copyright (c) 2003 Matt Thomas
@@ -683,7 +683,7 @@
slwi 7,7,1 /* len *= 2 */
add 7,7,6 /* len += src */
addi 6,6,-2 /* pre-decrement */
-1: lbzu 0,2(6) /* load and increment */
+1: lhzu 0,2(6) /* load and increment */
sthbrx 0,0,3 /* store (reversed)
add 3,3,8 /* dst += distance */
cmpl 0,6,7 /* at the end? */
Home |
Main Index |
Thread Index |
Old Index