2 * Sherlock Library -- Prefetch
4 * (c) 1997--2003 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
10 #ifndef _SHERLOCK_PREFETCH_H
11 #define _SHERLOCK_PREFETCH_H
13 #if defined(__athlon) || defined(__i686)
15 static inline void prefetch(void *addr)
17 asm volatile ("prefetcht0 %0" : : "m" (*(byte*)addr));
23 #warning "Don't know how to prefetch on your CPU. Please fix lib/prefetch.h."
26 static inline void prefetch(void *addr UNUSED)