Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133128666
D2083.id4352.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D2083.id4352.diff
View Options
Index: head/sys/dev/sfxge/common/efsys.h
===================================================================
--- head/sys/dev/sfxge/common/efsys.h
+++ head/sys/dev/sfxge/common/efsys.h
@@ -94,13 +94,20 @@
#define ISP2(x) (((x) & ((x) - 1)) == 0)
#endif
-#if defined(__x86_64__)
+#if defined(__x86_64__) && __FreeBSD_version >= 1000000
+
+#define SFXGE_USE_BUS_SPACE_8 1
+
#if !defined(bus_space_read_stream_8)
+
#define bus_space_read_stream_8(t, h, o) \
bus_space_read_8((t), (h), (o))
+
#define bus_space_write_stream_8(t, h, o, v) \
bus_space_write_8((t), (h), (o), (v))
+
#endif
+
#endif
#define ENOTACTIVE EINVAL
@@ -663,7 +670,7 @@
_NOTE(CONSTANTCONDITION) \
} while (B_FALSE)
-#if defined(__x86_64__)
+#if defined(SFXGE_USE_BUS_SPACE_8)
#define EFSYS_BAR_READQ(_esbp, _offset, _eqp) \
do { \
_NOTE(CONSTANTCONDITION) \
@@ -804,7 +811,7 @@
_NOTE(CONSTANTCONDITION) \
} while (B_FALSE)
-#if defined(__x86_64__)
+#if defined(SFXGE_USE_BUS_SPACE_8)
#define EFSYS_BAR_WRITEQ(_esbp, _offset, _eqp) \
do { \
_NOTE(CONSTANTCONDITION) \
@@ -873,7 +880,7 @@
} while (B_FALSE)
#endif
-#if defined(__x86_64__)
+#if defined(SFXGE_USE_BUS_SPACE_8)
#define EFSYS_BAR_WRITEO(_esbp, _offset, _eop, _lock) \
do { \
_NOTE(CONSTANTCONDITION) \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 5:05 AM (2 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24121058
Default Alt Text
D2083.id4352.diff (1 KB)
Attached To
Mode
D2083: sfxge: FreeBSD before 10 does not have bus_space_*_8 on amd64
Attached
Detach File
Event Timeline
Log In to Comment