This source file includes following definitions.
- sun4c_flush_all
1
2
3
4
5
6
7
8 #include <linux/kernel.h>
9
10 #include <asm/asi.h>
11 #include <asm/contregs.h>
12 #include <asm/vac-ops.h>
13 #include <asm/page.h>
14
15 struct sun4c_vac_props sun4c_vacinfo;
16
17
18 void
19 sun4c_flush_all(void)
20 {
21 unsigned long begin, end;
22
23 if(sun4c_vacinfo.on)
24 panic("SUN4C: AIEEE, trying to invalidate vac while"
25 " it is on.");
26
27
28 begin = AC_CACHETAGS;
29 end = (AC_CACHETAGS + sun4c_vacinfo.num_bytes);
30 while(begin < end) {
31 __asm__ __volatile__("sta %%g0, [%0] %1\n\t" : :
32 "r" (begin), "i" (ASI_CONTROL));
33 begin += sun4c_vacinfo.linesize;
34 }
35 return;
36 }
37