mirror of
https://github.com/drasko/codezero.git
synced 2026-02-05 22:43:15 +01:00
Progress on capabilities
Capabilities will be shared among collection of threads. A pager will have a right to share its own capabilities with its space, its thread group and its container. Currently sharing is possible with only all of the caps. Next, it will be support for cap splitting, granting, and partial sharing and granting.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <l4/lib/list.h>
|
||||
#include <l4/lib/mutex.h>
|
||||
#include <l4/lib/idpool.h>
|
||||
#include <l4/generic/capability.h>
|
||||
#include INC_SUBARCH(mm.h)
|
||||
|
||||
/* A simple page table with a reference count */
|
||||
@@ -32,6 +33,9 @@ struct address_space {
|
||||
struct link list;
|
||||
struct mutex lock;
|
||||
pgd_table_t *pgd;
|
||||
|
||||
/* Capabilities shared by threads in same space */
|
||||
struct cap_list cap_list;
|
||||
int ktcb_refs;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user