mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Added preliminary support for execve(). Updates to clone, fork, exit, task handling.
It turned out we used one version of kmalloc for malloc() and another for kfree()! Now fixed. Added parent-child relationship to tasks. Need to polish handling CLONE_PARENT and THREAD.
This commit is contained in:
@@ -1,18 +1,7 @@
|
||||
#ifndef __API_SPACE_H__
|
||||
#define __API_SPACE_H__
|
||||
|
||||
#define UNMAP_ALL_SPACE 0xFFFFFFFF
|
||||
|
||||
enum space_control_opcode {
|
||||
SPCCTRL_SHM = 0
|
||||
};
|
||||
|
||||
#if 0
|
||||
struct shm_kdata {
|
||||
l4id_t creator;
|
||||
unsigned long npages;
|
||||
unsigned long server_pfn;
|
||||
unsigned long client_pfn;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* __API_SPACE_H__ */
|
||||
|
||||
@@ -117,6 +117,7 @@ void add_mapping(unsigned int paddr, unsigned int vaddr,
|
||||
unsigned int size, unsigned int flags);
|
||||
int remove_mapping(unsigned long vaddr);
|
||||
int remove_mapping_pgd(unsigned long vaddr, pgd_table_t *pgd);
|
||||
int remove_mapping_pgd_all_user(pgd_table_t *pgd);
|
||||
void prealloc_phys_pagedesc(void);
|
||||
|
||||
int check_mapping_pgd(unsigned long vaddr, unsigned long size,
|
||||
|
||||
Reference in New Issue
Block a user