mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Adding support for refcounted page tables. Fixed freeing of kernel pmds on copy_page_tables
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user