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 the 64-bit case
details: https://anonhg.NetBSD.org/src/rev/8e232390d813
branches: trunk
changeset: 327145:8e232390d813
user: matt <matt%NetBSD.org@localhost>
date: Fri Feb 28 05:39:49 2014 +0000
description:
Fix the 64-bit case
diffstat:
sys/arch/powerpc/powerpc/pio_subr.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 7efd58286ffc -r 8e232390d813 sys/arch/powerpc/powerpc/pio_subr.S
--- a/sys/arch/powerpc/powerpc/pio_subr.S Fri Feb 28 05:38:53 2014 +0000
+++ b/sys/arch/powerpc/powerpc/pio_subr.S Fri Feb 28 05:39:49 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pio_subr.S,v 1.14 2011/07/01 18:59:19 dyoung Exp $ */
+/* $NetBSD: pio_subr.S,v 1.15 2014/02/28 05:39:49 matt Exp $ */
/*
* Copyright (c) 2003 Matt Thomas
@@ -400,14 +400,14 @@
add %r3,%r4,%r5 /* add offset to handle & place in argument 0 */
mr %r4,%r6 /* move addr to argument 1 register */
mr %r5,%r7 /* move count to argument 2 register */
-ENTRY(outs32)
+ENTRY(outs64)
cmpdi %r5,0 /* len == 0? */
beqlr- /* return if len == 0 */
addi %r5,%r5,-1 /* len -= 1 */
sldi %r5,%r5,2 /* len *= 4 */
add %r5,%r5,%r4 /* len += src */
addi %r4,%r4,-4 /* pre-decrement */
-1: ldzu %r0,4(%r4) /* load and increment */
+1: ldu %r0,4(%r4) /* load and increment */
std %r0,0(%r3) /* store */
cmpl 0,%r4,%r5 /* at the end? */
bne+ 1b /* nope, do another pass */
Home |
Main Index |
Thread Index |
Old Index