diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-25 20:51:44 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-25 20:51:44 +0000 |
commit | 478a64a3bf3baf5d0a87c4e1876d268b5d6dbd0b (patch) | |
tree | d7dd2ffb47d24f1f3d5479ac0cde96946ad77c5f /sys/arch/sparc | |
parent | e82905170473b809edef909a1234cec29b001098 (diff) |
Fix (currently unused) bus_space_vaddr() return value.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/include/bus.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/sparc/include/bus.h b/sys/arch/sparc/include/bus.h index f65f3fe3872..3c4f723123f 100644 --- a/sys/arch/sparc/include/bus.h +++ b/sys/arch/sparc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.9 2009/07/30 21:39:54 miod Exp $ */ +/* $OpenBSD: bus.h,v 1.10 2009/12/25 20:51:43 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * @@ -120,13 +120,7 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t handle, static __inline__ void * bus_space_vaddr(bus_space_tag_t tag, bus_space_handle_t handle) { - u_int32_t iospace = tag->rr_iospace; - void *rc; - - tag->rr_iospace &= ~TAG_LITTLE_ENDIAN; - rc = (void *)(REG2PHYS(tag, 0) | PMAP_NC); - tag->rr_iospace = iospace; - return (rc); + return ((void *)handle); } static __inline__ int |