[zion] Add per-process CapabilityTable object
Store this information in it's own object to make the API clearer.
This commit is contained in:
parent
be12fa9a19
commit
b4902a79ef
5 changed files with 119 additions and 68 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "capability/capability.h"
|
||||
#include "capability/capability_table.h"
|
||||
#include "lib/linked_list.h"
|
||||
#include "lib/mutex.h"
|
||||
#include "lib/ref_ptr.h"
|
||||
|
|
@ -63,5 +64,5 @@ class Process : public KernelObject {
|
|||
uint64_t next_cap_id_ = 0x100;
|
||||
|
||||
LinkedList<RefPtr<Thread>> threads_;
|
||||
LinkedList<RefPtr<Capability>> caps_;
|
||||
CapabilityTable caps_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue