sh: Build PMB entry links for existing contiguous multi-page mappings.

This plugs in entry sizing support for existing mappings and then builds
on top of that for linking together entries that are mapping contiguous
areas. This will ultimately permit us to coalesce mappings and promote
head pages while reclaiming PMB slots for dynamic remapping.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt
2010-02-17 17:56:38 +09:00
parent 9edef28653
commit d7813bc9e8
2 changed files with 30 additions and 31 deletions

View File

@ -59,6 +59,7 @@ struct pmb_entry {
unsigned long vpn;
unsigned long ppn;
unsigned long flags;
unsigned long size;
/*
* 0 .. NR_PMB_ENTRIES for specific entry selection, or
@ -66,7 +67,6 @@ struct pmb_entry {
*/
int entry;
struct pmb_entry *next;
/* Adjacent entry link for contiguous multi-entry mappings */
struct pmb_entry *link;
};