mirror of
https://github.com/drasko/codezero.git
synced 2026-04-17 17:29:04 +02:00
Code that compiles until initialization of containers and pagers.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <l4/lib/mutex.h>
|
||||
#include <l4/lib/spinlock.h>
|
||||
#include <l4/generic/scheduler.h>
|
||||
#include <l4/generic/pgalloc.h>
|
||||
#include <l4/generic/resource.h>
|
||||
#include <l4/generic/space.h>
|
||||
#include INC_GLUE(memory.h)
|
||||
#include INC_GLUE(syscall.h)
|
||||
@@ -42,6 +42,8 @@ struct task_ids {
|
||||
l4id_t tgid;
|
||||
};
|
||||
|
||||
struct container;
|
||||
|
||||
struct ktcb {
|
||||
/* User context */
|
||||
task_context_t context;
|
||||
@@ -94,6 +96,9 @@ struct ktcb {
|
||||
/* Page table information */
|
||||
struct address_space *space;
|
||||
|
||||
/* Container */
|
||||
struct container *container;
|
||||
|
||||
/* Fields for ipc rendezvous */
|
||||
struct waitqueue_head wqh_recv;
|
||||
struct waitqueue_head wqh_send;
|
||||
@@ -121,7 +126,6 @@ union ktcb_union {
|
||||
char kstack[PAGE_SIZE];
|
||||
};
|
||||
|
||||
|
||||
/* Hash table for all existing tasks */
|
||||
struct ktcb_list {
|
||||
struct link list;
|
||||
@@ -157,7 +161,7 @@ void tcb_init(struct ktcb *tcb);
|
||||
struct ktcb *tcb_alloc_init(void);
|
||||
void tcb_delete(struct ktcb *tcb);
|
||||
|
||||
void init_ktcb_list(void);
|
||||
void init_ktcb_list(struct ktcb_list *ktcb_list);
|
||||
void task_update_utcb(struct ktcb *cur, struct ktcb *next);
|
||||
int tcb_check_and_lazy_map_utcb(struct ktcb *task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user