Re: Pentium SSE prefetcht0 instruction... How do you make it work

From: Robert Love (
Date: Thu Sep 27 2001 - 14:54:24 EST

On Thu, 2001-09-27 at 14:40, Bulent Abali wrote:
> //This should prefetch an L2 line at addr (hence L3 line prefetch)
> inline void L3_prefetch (char * addr)
> {
> asm volatile("prefetcht1 %0" :: "m" (addr));
> }

There are prefetch instructions already in the kernel.

See include/linux/prefetch.h
and linux/include/asm-i386/processor.h

Robert M. Love
rml at
rml at

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:00:57 EST