linux-mips
[Top] [All Lists]

Re: problem with prefetch in user space

To: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Subject: Re: problem with prefetch in user space
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 20 Aug 2004 22:44:47 +0200
Cc: Tim Lai <tinglai@gmail.com>, Eric DeVolder <eric.devolder@amd.com>, linux-mips@linux-mips.org
In-reply-to: <20040818171342.GN23756@rembrandt.csv.ica.uni-stuttgart.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <e2eac65704081716345c78b7c6@mail.gmail.com> <41235841.6090105@amd.com> <e2eac65704081808061f27cb5a@mail.gmail.com> <20040818153148.GI23756@rembrandt.csv.ica.uni-stuttgart.de> <e2eac657040818094264dc6a3b@mail.gmail.com> <20040818171342.GN23756@rembrandt.csv.ica.uni-stuttgart.de>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Wed, Aug 18, 2004 at 07:13:42PM +0200, Thiemo Seufer wrote:

> Something like:
> 
>         __asm__ __volatile__(
>               ".set push\n"
>               ".set mips4\n"
>               "pref " PREF_OP ", 0(%0)\n"
>               ".set pop\n"
>               : "=r" (addr));
> 
> For more information: "info gcc" and the kernel sources.

A few years ago somebody wrote a nice howto on inline assembler that also
contains all the architecture specifics.  Should be possible to track it
down via your favorite search engine.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>