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

Robert Love (rml@tech9.net)
27 Sep 2001 15:54:24 -0400


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 ufl.edu
rml at tech9.net

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/