diff options
author | Robert Morris <[email protected]> | 2019-05-31 12:43:20 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-05-31 12:43:20 -0400 |
commit | 7fd1f1eb0aab4d52852fc4f5e83eafc991f9a627 (patch) | |
tree | 321ae7c509d2b6286240ad181bc28a9dc3436704 /defs.h | |
parent | 5d34fa2a489940f19ee6c4728e4b11b6d8ffad01 (diff) | |
download | xv6-labs-7fd1f1eb0aab4d52852fc4f5e83eafc991f9a627.tar.gz xv6-labs-7fd1f1eb0aab4d52852fc4f5e83eafc991f9a627.tar.bz2 xv6-labs-7fd1f1eb0aab4d52852fc4f5e83eafc991f9a627.zip |
exec compiles but argstr() doesn't work yet
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -107,6 +107,8 @@ int cpuid(void); void exit(void); int fork(void); int growproc(int); +pagetable_t proc_pagetable(struct proc *); +void proc_freepagetable(pagetable_t, uint64); int kill(int); struct cpu* mycpu(void); struct cpu* getmycpu(void); @@ -178,11 +180,14 @@ void kvminit(void); void kvmswitch(void); pagetable_t uvmcreate(void); void uvminit(pagetable_t, char *, uint); -int uvmdealloc(pagetable_t, uint64, uint64); +uint64 uvmalloc(pagetable_t, uint64, uint64); +uint64 uvmdealloc(pagetable_t, uint64, uint64); void uvmcopy(pagetable_t, pagetable_t, uint64); void uvmfree(pagetable_t, uint64); void mappages(pagetable_t, uint64, uint64, uint64, int); void unmappages(pagetable_t, uint64, uint64, int); +uint64 walkaddr(pagetable_t, uint64); +int copyout(pagetable_t, uint64, char *, uint64); // number of elements in fixed-size array #define NELEM(x) (sizeof(x)/sizeof((x)[0])) |