summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-02-14 06:33:52 +0000
committeranholt <anholt@FreeBSD.org>2003-02-14 06:33:52 +0000
commitc1f9432df87518b4a41027a8db43313201fdaf74 (patch)
tree15c6acae66f1380af036f5e4697f34c2531b44f7 /sys/pci
parentfed8c49da5123b6e1a6ad7867ba0901312637273 (diff)
downloadFreeBSD-src-c1f9432df87518b4a41027a8db43313201fdaf74.zip
FreeBSD-src-c1f9432df87518b4a41027a8db43313201fdaf74.tar.gz
Split the arch-specific AGP files into the appropriate files.* and do the same
for the agp module, and add agp to the list of modules to compile for alpha. Add an alpha_mb() to agp_flush_cache for alpha -- it's not correct but may improve the situation, and it's what linux and NetBSD do.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/agp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c
index ddd29b9..293011c 100644
--- a/sys/pci/agp.c
+++ b/sys/pci/agp.c
@@ -96,6 +96,12 @@ agp_flush_cache()
#ifdef __i386__
wbinvd();
#endif
+#ifdef __alpha__
+ /* FIXME: This is most likely not correct as it doesn't flush CPU
+ * write caches, but we don't have a facility to do that and
+ * this is all linux does, too */
+ alpha_mb();
+#endif
}
u_int8_t
OpenPOWER on IntegriCloud