1*7407cf33Sjsg /* $OpenBSD: agp_machdep.c,v 1.17 2024/07/02 04:42:43 jsg Exp $ */
2b3f75128Stedu
3b3f75128Stedu /*
4b3f75128Stedu * Copyright (c) 2002 Michael Shalayeff
5b3f75128Stedu * All rights reserved.
6b3f75128Stedu *
7b3f75128Stedu * Redistribution and use in source and binary forms, with or without
8b3f75128Stedu * modification, are permitted provided that the following conditions
9b3f75128Stedu * are met:
10b3f75128Stedu * 1. Redistributions of source code must retain the above copyright
11b3f75128Stedu * notice, this list of conditions and the following disclaimer.
12b3f75128Stedu * 2. Redistributions in binary form must reproduce the above copyright
13b3f75128Stedu * notice, this list of conditions and the following disclaimer in the
14b3f75128Stedu * documentation and/or other materials provided with the distribution.
15b3f75128Stedu *
16b3f75128Stedu * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17b3f75128Stedu * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18b3f75128Stedu * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19b3f75128Stedu * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
20b3f75128Stedu * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21b3f75128Stedu * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22b3f75128Stedu * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23b3f75128Stedu * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24b3f75128Stedu * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
25b3f75128Stedu * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26b3f75128Stedu * THE POSSIBILITY OF SUCH DAMAGE.
27b3f75128Stedu */
28b3f75128Stedu
29b3f75128Stedu #include <sys/param.h>
3014f2d5f5Soga #include <sys/systm.h>
31b3f75128Stedu
32b3f75128Stedu #include <machine/cpufunc.h>
334cebeb63Soga
34b3f75128Stedu void
agp_flush_cache(void)35b3f75128Stedu agp_flush_cache(void)
36b3f75128Stedu {
37b3f75128Stedu wbinvd();
38b3f75128Stedu }
39