[Top] [All Lists]

Re: flush_anon_page for MIPS

To: "Ralf Baechle" <>
Subject: Re: flush_anon_page for MIPS
From: "Franck Bui-Huu" <>
Date: Fri, 23 Mar 2007 22:00:00 +0100
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N+TzGWL90wa+6U6c5QM77QV25MfpllsDKjxGi6aBZ1cvbY/EO+TAsJhe7jbPJP8OfNjbvNc5Xydcg/Z0s5w9paTfCzvBuAEpA8Psevkg3F62nWodJIU5ttHOzv+nLZtbN2Rqrw2b4S2/yzy6NmNvBeVtmK/P0Cibu9TbK52A3p4=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gzgDZtLq1LTlZ/+TZJJ5O2hobQKJPyPix6kNkhr9kbknKck8P2jX7pinyWmYg0HEZH7J/gUAPpo2ZlOU9XacVmA7fQl/fK/rbc91gRd8xxlf6PLSt1dPGTpF6sp6ccbqJT02K85NaeSd3Z1Dx8NAlvvx0g0cuOcFFO2zZBmnlpc=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
On 3/23/07, Ralf Baechle <> wrote:
Let me illustrate this with a little example.  Assume we have a page at
physical address 0x5000, a page size of 4kB, an 8kB direct mapped cache
and 32-byte cache lines.  Then address bits 0..4 will be the byte index
into the cache line, address bits 5..12 will index the cache array.  So
now let's map our page into userspace, at address 0x12340000.  In KSEG0
it is accessible at 0x80005000.  Now, compute the cache index for both
addresses compare and curse ...

Yes but since the kernel page address is fixed, why not choosing
userspace page addresses to share the same kernel cache index ?

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