mirror of
https://github.com/drasko/codezero.git
synced 2026-02-18 21:03:14 +01:00
Added per-task curdir. and chdir, pager_read/write, mmap and munmap calls.
They look like what they should look like, but untested.
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#include <l4lib/ipcdefs.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <task.h>
|
||||
#include <vfs.h>
|
||||
|
||||
|
||||
struct tcb_head {
|
||||
struct list_head list;
|
||||
@@ -88,10 +90,12 @@ int init_task_structs(l4id_t *tdata)
|
||||
struct tcb *t;
|
||||
int total = tdata[0];
|
||||
|
||||
for (int i = 0; i < total; i++)
|
||||
for (int i = 0; i < total; i++) {
|
||||
if (IS_ERR(t = create_tcb(tdata[1 + i])))
|
||||
return (int)t;
|
||||
|
||||
t->rootdir = vfs_root.pivot;
|
||||
t->curdir = vfs_root.pivot;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user