proc: copy memmap from parent
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
14c2f27d40
commit
30c14a0fef
6 changed files with 85 additions and 11 deletions
|
|
@ -20,10 +20,15 @@ typedef u64 tid_t;
|
|||
|
||||
struct vm_area {
|
||||
vaddr_t start;
|
||||
vaddr_t end;
|
||||
size_t len;
|
||||
u64 flags;
|
||||
};
|
||||
|
||||
struct proc_alloc {
|
||||
void *ptr;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
struct proc;
|
||||
struct thread {
|
||||
tid_t tid;
|
||||
|
|
@ -52,9 +57,12 @@ struct proc {
|
|||
spinlock_t mem_lock;
|
||||
rbtree_t memmap;
|
||||
|
||||
struct ehdr *ehdr;
|
||||
struct phdrs *phdrs;
|
||||
size_t n_phdrs;
|
||||
spinlock_t alloc_lock;
|
||||
rbtree_t alloc_map;
|
||||
|
||||
struct ehdr *ehdr;
|
||||
struct phdrs *phdrs;
|
||||
size_t n_phdrs;
|
||||
};
|
||||
|
||||
int proc_kill(struct proc *proc, int signal);
|
||||
|
|
|
|||
Loading…
Reference in a new issue