From c1f9432df87518b4a41027a8db43313201fdaf74 Mon Sep 17 00:00:00 2001 From: anholt Date: Fri, 14 Feb 2003 06:33:52 +0000 Subject: 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. --- sys/pci/agp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/pci') 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 -- cgit v1.1