mirror of
https://github.com/drasko/codezero.git
synced 2026-02-26 16:53:14 +01:00
Some minor changes
Need to reimplement exchange_registers
This commit is contained in:
@@ -40,9 +40,10 @@ static inline l4id_t l4_get_sender(void)
|
||||
|
||||
/*
|
||||
* When doing an ipc the sender never has to be explicitly set in
|
||||
* the utcb via this function since it is passed in the argument
|
||||
* registers. This is only used for restoring the sender on the
|
||||
* utcb in order to complete an earlier ipc.
|
||||
* the utcb via this function since this information is found out
|
||||
* by the microkernel by checking the system caller's id. This is
|
||||
* only used for restoring the sender on the utcb in order to
|
||||
* complete an earlier ipc.
|
||||
*/
|
||||
static inline void l4_set_sender(l4id_t sender)
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ int fork(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
extern int arch_clone(int, int);
|
||||
extern int arch_clone(l4id_t to, l4id_t from);
|
||||
|
||||
int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...)
|
||||
{
|
||||
|
||||
@@ -54,6 +54,7 @@ int do_fork(struct tcb *parent)
|
||||
struct task_ids ids = {
|
||||
.tid = TASK_ID_INVALID,
|
||||
.spid = parent->spid,
|
||||
.tgid = TASK_ID_INVALID /* FIXME: !!! FIX THIS */
|
||||
};
|
||||
|
||||
/* Make all shadows in this task read-only */
|
||||
@@ -81,7 +82,7 @@ int do_fork(struct tcb *parent)
|
||||
l4_ipc_return((int)utcb_shm);
|
||||
return 0;
|
||||
}
|
||||
/* FIXME: We should munmap() parent's utcb page from child */
|
||||
/* FIXME: Should we munmap() parent's utcb page from child? */
|
||||
|
||||
/*
|
||||
* Map and prefault child utcb to vfs so that vfs need not
|
||||
|
||||
Reference in New Issue
Block a user