Moved all find_task(sender) calls into topmost ipc handler.

System calls now need not search for the tcb they are serving for.
This commit is contained in:
Bahadir Balban
2008-09-16 20:11:24 +03:00
parent 2e94a78253
commit a413b19842
13 changed files with 51 additions and 100 deletions

View File

@@ -11,6 +11,7 @@
#include <sys/types.h>
#include <l4lib/types.h>
#include <task.h>
/* For reading argument data from a system call */
struct sys_mmap_args {
@@ -22,10 +23,10 @@ struct sys_mmap_args {
off_t offset;
};
void *sys_mmap(l4id_t sender, void *start, size_t length, int prot,
void *sys_mmap(struct tcb *sender, void *start, size_t length, int prot,
int flags, int fd, off_t offset);
int sys_munmap(l4id_t sender, void *vaddr, unsigned long size);
int sys_munmap(struct tcb *sender, void *vaddr, unsigned long size);
struct sys_shmat_args {
l4id_t shmid;
@@ -33,8 +34,8 @@ struct sys_shmat_args {
int shmflg;
};
void *sys_shmat(l4id_t requester, l4id_t shmid, const void *shmaddr, int shmflg);
int sys_shmdt(l4id_t requester, const void *shmaddr);
void *sys_shmat(struct tcb *requester, l4id_t shmid, const void *shmaddr, int shmflg);
int sys_shmdt(struct tcb *requester, const void *shmaddr);
struct sys_shmget_args {
key_t key;
@@ -44,7 +45,7 @@ struct sys_shmget_args {
int sys_shmget(key_t key, int size, int shmflg);
int sys_fork(l4id_t parent);
int sys_fork(struct tcb *parent);
#endif /* __MM0_SYSARGS_H__ */