summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/include/bus.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/pc98/include/bus.h b/sys/pc98/include/bus.h
index 3292474..2060414 100644
--- a/sys/pc98/include/bus.h
+++ b/sys/pc98/include/bus.h
@@ -78,7 +78,9 @@
#ifndef _PC98_BUS_H_
#define _PC98_BUS_H_
+#ifdef _KERNEL
#include <sys/systm.h>
+#endif /* _KERNEL */
#include <machine/_bus.h>
#include <machine/cpufunc.h>
@@ -92,6 +94,8 @@
#define BUS_SPACE_UNRESTRICTED (~0)
+#ifdef _KERNEL
+
/*
* address relocation table
*/
@@ -639,4 +643,6 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t bsh,
#define bus_space_copy_region_stream_4(t, h1, o1, h2, o2, c) \
bus_space_copy_region_4((t), (h1), (o1), (h2), (o2), (c))
+#endif /* _KERNEL */
+
#endif /* _PC98_BUS_H_ */
OpenPOWER on IntegriCloud