mirror of
https://github.com/drasko/codezero.git
synced 2026-03-24 21:11:50 +01:00
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:
@@ -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__ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user