Module Name: src
Committed By: riastradh
Date: Wed Jul 24 03:39:52 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/include/asm [riastradh-drm2]: io.h
Log Message:
Add bogus x86-specific mmiowb to Linux <asm/io.h>.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/external/bsd/drm2/include/asm/io.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/asm/io.h
diff -u src/sys/external/bsd/drm2/include/asm/io.h:1.1.2.1 src/sys/external/bsd/drm2/include/asm/io.h:1.1.2.2
--- src/sys/external/bsd/drm2/include/asm/io.h:1.1.2.1 Wed Jul 24 00:33:11 2013
+++ src/sys/external/bsd/drm2/include/asm/io.h Wed Jul 24 03:39:52 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: io.h,v 1.1.2.1 2013/07/24 00:33:11 riastradh Exp $ */
+/* $NetBSD: io.h,v 1.1.2.2 2013/07/24 03:39:52 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,11 @@
#ifndef _ASM_IO_H_
#define _ASM_IO_H_
+/*
+ * XXX This is bollocks, and is wrong on various architectures (should
+ * work for x86; who knows what else), but bus_space_barrier won't work
+ * because we have no bus space tag or handle or offset or anything.
+ */
+#define mmiowb() __insn_barrier()
+
#endif /* _ASM_IO_H_ */