Thomas Petazzoni wrote:
Hi,
Thanks for your answer.
Le Mon, 30 Jul 2007 17:01:43 +0530,
Vivek Kutal <vivekutal@xxxxxxxxx> a écrit :
You could just reset the present bit of the pages that you want to
remap. Now the next access to these pages will generate a fault and
your nopage() will be called.
And how would you reset the present bit, with a clean and
architecture-independent way ? Of course, one can hack the PTE by hand,
but that's not what I would call "clean" and
"architecture-independent" :-)
you can use set_pte or set_pte_at.
--
Vivek Kutal
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ