Adding support for refcounted page tables. Fixed freeing of kernel pmds on copy_page_tables

This commit is contained in:
Bahadir Balban
2009-05-02 11:21:19 +03:00
parent 8ab892375e
commit 3acc66c2e7
3 changed files with 17 additions and 3 deletions

View File

@@ -39,6 +39,12 @@ struct task_ids {
l4id_t tgid;
};
/* A simple page table with a reference count */
struct address_space {
struct pgd_table_t *pgd;
int ktcb_refs;
};
struct ktcb {
/* User context */
task_context_t context;
@@ -86,7 +92,7 @@ struct ktcb {
int nlocks;
/* Page table information */
pgd_table_t *pgd;
struct address_space *space;
/* Fields for ipc rendezvous */
struct waitqueue_head wqh_recv;