linux-mips
[Top] [All Lists]

Re: Page Colouring

To: ralf@cobaltmicro.com
Subject: Re: Page Colouring
From: "David S. Miller" <davem@jenolan.rutgers.edu>
Date: Sat, 18 Oct 1997 15:44:09 -0400
Cc: markhe@nextd.demon.co.uk, linux-kernel@vger.rutgers.edu, linux@cthulhu.engr.sgi.com
In-reply-to: <19971018051839.32034@tbird.cobaltmicro.com> (message from Ralf Baechle on Sat, 18 Oct 1997 05:18:39 -0700)
Sender: owner-linux@cthulhu.engr.sgi.com
We could pull this off, and I've been keeping this very issue in the
back of my head as I hack on Mark Hemment's changes.

Essentially you'd have to pass into the page allocation the
destination virtual address.  Then in the coloured allocator we put a
macro which can be defined to zero on sane architectures.

        if(page_color_verify(phys_page, virt_page)) {
                free_page(phys_page);
                goto repeat;
        }

Something like this, don't worry I'm thinking about it.

Later,
David "Sparc" Miller
davem@caip.rutgers.edu

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