lkml.org 
[lkml]   [2001]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Pentium SSE prefetcht0 instruction... How do you make it work
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.036 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site