This source file includes following definitions.
- prefetch
- prefetchw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #ifndef __ASM_PARISC_PREFETCH_H
17 #define __ASM_PARISC_PREFETCH_H
18
19 #ifndef __ASSEMBLY__
20 #ifdef CONFIG_PREFETCH
21
22 #define ARCH_HAS_PREFETCH
23 static inline void prefetch(const void *addr)
24 {
25 __asm__(
26 #ifndef CONFIG_PA20
27
28 " extrw,u,= %0,31,32,%%r0\n"
29 #endif
30 " ldw 0(%0), %%r0" : : "r" (addr));
31 }
32
33
34 #ifdef CONFIG_PA20
35 #define ARCH_HAS_PREFETCHW
36 static inline void prefetchw(const void *addr)
37 {
38 __asm__("ldd 0(%0), %%r0" : : "r" (addr));
39 }
40 #endif
41
42 #endif
43 #endif
44
45 #endif