summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-08 20:49:43 +0000
committerjhb <jhb@FreeBSD.org>2002-11-08 20:49:43 +0000
commitba93b1c02aa6d0ce2d8a2ec3545e19876cf6ec1b (patch)
tree1d6c510b4038684e4b7a220ed60ca7302cd1c4c8 /sys/alpha
parentad9e680296473a3039d6dbebf0ba694d2fa9bd6c (diff)
downloadFreeBSD-src-ba93b1c02aa6d0ce2d8a2ec3545e19876cf6ec1b.zip
FreeBSD-src-ba93b1c02aa6d0ce2d8a2ec3545e19876cf6ec1b.tar.gz
Cast pointers in mem*_io() compat macros to uintptr_t so that they can be
used as bus handles by the bus_space functions implementing these macros.
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/bus.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/alpha/include/bus.h b/sys/alpha/include/bus.h
index 27c9cda..784eda3 100644
--- a/sys/alpha/include/bus.h
+++ b/sys/alpha/include/bus.h
@@ -247,15 +247,15 @@ extern struct alpha_busspace *busspace_isa_mem;
(void*)(a), c)
#define memcpy_fromio(d, s, c) \
- bus_space_read_region_1(busspace_isa_mem, s, 0, d, c)
+ bus_space_read_region_1(busspace_isa_mem, (uintptr_t)(s), 0, d, c)
#define memcpy_toio(d, s, c) \
- bus_space_write_region_1(busspace_isa_mem, d, 0, s, c)
+ bus_space_write_region_1(busspace_isa_mem, (uintptr_t)(d), 0, s, c)
#define memcpy_io(d, s, c) \
- bus_space_copy_region_1(busspace_isa_mem, s, 0, d, 0, c)
+ bus_space_copy_region_1(busspace_isa_mem, (uintptr_t)(s), 0, d, 0, c)
#define memset_io(d, v, c) \
- bus_space_set_region_1(busspace_isa_mem, d, 0, v, c)
+ bus_space_set_region_1(busspace_isa_mem, (uintptr_t)(d), 0, v, c)
#define memsetw_io(d, v, c) \
- bus_space_set_region_2(busspace_isa_mem, d, 0, v, c)
+ bus_space_set_region_2(busspace_isa_mem, (uintptr_t)(d), 0, v, c)
static __inline void
memsetw(void *d, int val, size_t size)
OpenPOWER on IntegriCloud