Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/include Fix bus_space_read_region_{2, 4, 8}().



details:   https://anonhg.NetBSD.org/src/rev/5158c39acd21
branches:  trunk
changeset: 494034:5158c39acd21
user:      pk <pk%NetBSD.org@localhost>
date:      Thu Jun 29 14:10:16 2000 +0000

description:
Fix bus_space_read_region_{2,4,8}().

diffstat:

 sys/arch/sparc64/include/bus.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 334d68e402cd -r 5158c39acd21 sys/arch/sparc64/include/bus.h
--- a/sys/arch/sparc64/include/bus.h    Thu Jun 29 14:06:40 2000 +0000
+++ b/sys/arch/sparc64/include/bus.h    Thu Jun 29 14:10:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.18 2000/06/26 04:56:10 simonb Exp $  */
+/*     $NetBSD: bus.h,v 1.19 2000/06/29 14:10:16 pk Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -614,7 +614,7 @@
        u_int16_t               *a;
 {
        for (; c; a++, c--, o+=2)
-               *a = bus_space_read_1(t, h, o);
+               *a = bus_space_read_2(t, h, o);
 }
 extern __inline__ void
 bus_space_read_region_4(t, h, o, a, c)
@@ -624,7 +624,7 @@
        u_int32_t               *a;
 {
        for (; c; a++, c--, o+=4)
-               *a = bus_space_read_1(t, h, o);
+               *a = bus_space_read_4(t, h, o);
 }
 extern __inline__ void
 bus_space_read_region_8(t, h, o, a, c)
@@ -634,7 +634,7 @@
        u_int64_t               *a;
 {
        for (; c; a++, c--, o+=8)
-               *a = bus_space_read_1(t, h, o);
+               *a = bus_space_read_8(t, h, o);
 }
 
 /*



Home | Main Index | Thread Index | Old Index