Pager virtual address pool bookkeeping added for all pager virtual addresses

Previously virt_to_phys/phys_to_virt macros were used such that they did a
blind offset translation for creating a pager internal virtual address for
user mappings.

This is now changed such that a properly bookkeeped virtual address pool is
used which will avoid any clashes on the virtual space.
This commit is contained in:
Bahadir Balban
2009-08-19 14:44:36 +03:00
parent d351d6846a
commit 95b7b65c89
11 changed files with 94 additions and 46 deletions

View File

@@ -15,6 +15,9 @@ struct address_pool {
unsigned long end;
};
int address_pool_init_with_idpool(struct address_pool *pool,
struct id_pool *idpool,
unsigned long start, unsigned long end);
int address_pool_init(struct address_pool *pool, unsigned long start,
unsigned long end);
void *address_new(struct address_pool *pool, int npages);