Adding address space structure to ktcbs. Still booting until virtual memory is enabled.

This commit is contained in:
Bahadir Balban
2009-05-07 10:26:34 +03:00
parent 3acc66c2e7
commit 6e1edc0aad
10 changed files with 45 additions and 44 deletions

View File

@@ -19,6 +19,17 @@
#define MAP_IO_DEFAULT_FLAGS MAP_SVC_IO_FLAGS
#if defined (__KERNEL__)
#include <l4/lib/list.h>
#include INC_SUBARCH(mm.h)
/* A simple page table with a reference count */
struct address_space {
struct list_head list;
pgd_table_t *pgd;
int ktcb_refs;
};
int check_access(unsigned long vaddr, unsigned long size, unsigned int flags);
#endif