All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: Bulent Abali <abali@us.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Pentium SSE prefetcht0 instruction... How do you make it work
Date: 27 Sep 2001 15:54:24 -0400	[thread overview]
Message-ID: <1001620509.4649.23.camel@phantasy> (raw)
In-Reply-To: <OF3A810D97.1605796C-ON85256AD4.0065EDD2@pok.ibm.com>
In-Reply-To: <OF3A810D97.1605796C-ON85256AD4.0065EDD2@pok.ibm.com>

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


  parent reply	other threads:[~2001-09-27 19:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-27 18:40 Pentium SSE prefetcht0 instruction... How do you make it work Bulent Abali
2001-09-27 18:43 ` Tony Hagale
2001-09-27 19:55   ` Robert Love
2001-09-27 19:54 ` Robert Love [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-27 20:09 Bulent Abali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1001620509.4649.23.camel@phantasy \
    --to=rml@tech9.net \
    --cc=abali@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.