Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/arm32/footbridge Pullup from trunk.



details:   https://anonhg.NetBSD.org/src/rev/17ba07faf104
branches:  netbsd-1-5
changeset: 488267:17ba07faf104
user:      mark <mark%NetBSD.org@localhost>
date:      Mon Jun 26 05:35:38 2000 +0000

description:
Pullup from trunk.
Implement bus_space_write_region_4() and bus_space_read_region4()
for footbridge. This fixes panics with the siop driver due to missing
bus space functions.

diffstat:

 sys/arch/arm32/footbridge/footbridge_io.c     |   6 ++--
 sys/arch/arm32/footbridge/footbridge_io_asm.S |  32 ++++++++++++++++++++++++++-
 2 files changed, 34 insertions(+), 4 deletions(-)

diffs (80 lines):

diff -r ab8d73754195 -r 17ba07faf104 sys/arch/arm32/footbridge/footbridge_io.c
--- a/sys/arch/arm32/footbridge/footbridge_io.c Mon Jun 26 01:26:16 2000 +0000
+++ b/sys/arch/arm32/footbridge/footbridge_io.c Mon Jun 26 05:35:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_io.c,v 1.5 2000/04/17 17:39:17 drochner Exp $       */
+/*     $NetBSD: footbridge_io.c,v 1.5.4.1 2000/06/26 05:35:38 mark Exp $       */
 
 /*
  * Copyright (c) 1997 Causality Limited
@@ -89,7 +89,7 @@
        /* read region */
        bs_notimpl_bs_rr_1,
        footbridge_bs_rr_2,
-       bs_notimpl_bs_rr_4,
+       footbridge_bs_rr_4,
        bs_notimpl_bs_rr_8,
 
        /* write (single) */
@@ -107,7 +107,7 @@
        /* write region */
        bs_notimpl_bs_wr_1,
        footbridge_bs_wr_2,
-       bs_notimpl_bs_wr_4,
+       footbridge_bs_wr_4,
        bs_notimpl_bs_wr_8,
 
        /* set multiple */
diff -r ab8d73754195 -r 17ba07faf104 sys/arch/arm32/footbridge/footbridge_io_asm.S
--- a/sys/arch/arm32/footbridge/footbridge_io_asm.S     Mon Jun 26 01:26:16 2000 +0000
+++ b/sys/arch/arm32/footbridge/footbridge_io_asm.S     Mon Jun 26 05:35:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: footbridge_io_asm.S,v 1.3 1999/02/27 11:14:27 mark Exp $       */
+/*     $NetBSD: footbridge_io_asm.S,v 1.3.18.1 2000/06/26 05:35:38 mark Exp $  */
 
 /*
  * Copyright (c) 1997 Causality Limited.
@@ -195,6 +195,21 @@
 
        mov     pc, lr
 
+ENTRY(footbridge_bs_rr_4)
+       add     r0, r1, r2
+       mov     r1, r3
+       ldr     r2, [sp, #0]
+       teq     r2, #0
+       moveq   pc, lr
+
+Lfootbridge_rr_4_loop:
+       ldr     r3, [r0], #4
+       str     r3, [r1], #4
+       subs    r2, r2, #1
+       bne     Lfootbridge_rr_4_loop
+
+       mov     pc, lr
+
 /*
  * write region.
  */
@@ -214,6 +229,21 @@
 
        mov     pc, lr
 
+ENTRY(footbridge_bs_wr_4)
+       add     r0, r1, r2
+       mov     r1, r3
+       ldr     r2, [sp, #0]
+       teq     r2, #0
+       moveq   pc, lr
+
+Lfootbridge_wr_4_loop: 
+       ldr     r3, [r1], #4
+       str     r3, [r0], #4
+       subs    r2, r2, #1
+       bne     Lfootbridge_wr_4_loop
+
+       mov     pc, lr
+
 /*
  * set region
  */



Home | Main Index | Thread Index | Old Index