summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-09-27 20:47:30 +0000
committermiod <miod@openbsd.org>2011-09-27 20:47:30 +0000
commit7142cce9a202ce85342b6c9be0182ac4f145807c (patch)
tree09a779ff2f2fba0a764366c25d200e703c2ae3e9 /sys/arch/sparc
parentMake struct label_t large enough for the kernel setjmp() purposes. Found after (diff)
downloadwireguard-openbsd-7142cce9a202ce85342b6c9be0182ac4f145807c.tar.xz
wireguard-openbsd-7142cce9a202ce85342b6c9be0182ac4f145807c.zip
Make bus_addr_t and bus_size_t u_long types, instead of either uint32_t or
uint64_t, depending upon the platform; this makes the declaration of these types consistent accross all our supported platform, and we do not intend to support a platform where bus_addr_t could be larger than the size of the cpu register. Requested by deraadt@ during s2k11
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/include/bus.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/bus.h b/sys/arch/sparc/include/bus.h
index bd3999c5697..ec723213110 100644
--- a/sys/arch/sparc/include/bus.h
+++ b/sys/arch/sparc/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.12 2011/04/07 15:30:16 miod Exp $ */
+/* $OpenBSD: bus.h,v 1.13 2011/09/27 20:47:30 miod Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
*
@@ -45,7 +45,7 @@
#include <machine/pmap.h>
-typedef u_int32_t bus_space_handle_t;
+typedef u_long bus_space_handle_t;
/*
* bus_space_tag_t are pointer to *modified* rom_reg structures.
@@ -60,8 +60,8 @@ typedef struct rom_reg *bus_space_tag_t;
#define IS_TAG_LITTLE_ENDIAN(t) ((t)->rr_iospace & TAG_LITTLE_ENDIAN)
-typedef u_int32_t bus_addr_t;
-typedef u_int32_t bus_size_t;
+typedef u_long bus_addr_t;
+typedef u_long bus_size_t;
/*
* General bus_space function set