mirror of
https://github.com/drasko/codezero.git
synced 2026-01-24 08:43:15 +01:00
Container/Pager/Capability initialization that works.
Need to safely free boot memory and jump to first task's stack. Need to test scheduler and all syscall entries.
This commit is contained in:
@@ -69,6 +69,20 @@ struct cap_list {
|
||||
void capability_init(struct capability *cap);
|
||||
struct capability *capability_create(void);
|
||||
|
||||
|
||||
static inline void cap_list_init(struct cap_list *clist)
|
||||
{
|
||||
clist->ncaps = 0;
|
||||
link_init(&clist->caps);
|
||||
}
|
||||
|
||||
static inline void cap_list_insert(struct capability *cap,
|
||||
struct cap_list *clist)
|
||||
{
|
||||
list_insert(&cap->list, &clist->caps);
|
||||
clist->ncaps++;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Virtual memory space allocated to container */
|
||||
struct capability cap_virtmap = {
|
||||
|
||||
@@ -35,6 +35,13 @@ struct container_head {
|
||||
struct link list;
|
||||
};
|
||||
|
||||
static inline void
|
||||
container_head_init(struct container_head *chead)
|
||||
{
|
||||
chead->ncont = 0;
|
||||
link_init(&chead->list);
|
||||
}
|
||||
|
||||
/*
|
||||
* Everything on the platform is described and stored
|
||||
* in the structure below.
|
||||
|
||||
Reference in New Issue
Block a user