| 29 | #ifdef _KERNEL |
| 30 | |
| 31 | static __inline void |
| 32 | kern_prefetch(const volatile void *addr, void* before) |
| 33 | { |
| 34 | #if defined(__amd64__) |
| 35 | __asm __volatile("prefetcht1 (%1)":"=rm"(*((int32_t *)before)):"r"(addr):); |
| 36 | #else |
| 37 | /* __builtin_prefetch(addr);*/ |
| 38 | #endif |
| 39 | } |
| 40 | |
| 41 | #endif /* _KERNEL */ |
| 42 | #endif /* __kern_prefetch_h__ */ |
no outgoing calls
no test coverage detected