summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/defs.h b/defs.h
index 82fb982..fd9ecb4 100644
--- a/defs.h
+++ b/defs.h
@@ -126,7 +126,7 @@ void swtch(struct context**, struct context*);
// spinlock.c
void acquire(struct spinlock*);
-void getcallerpcs(void*, uint*);
+void getcallerpcs(void*, uint64*);
int holding(struct spinlock*);
void initlock(struct spinlock*, char*);
void release(struct spinlock*);
@@ -152,8 +152,10 @@ char* strncpy(char*, const char*, int);
int argint(int, int*);
int argptr(int, char**, int);
int argstr(int, char**);
-int fetchint(uint, int*);
-int fetchstr(uint, char**);
+int argaddr(int, uint64 *);
+int fetchint(uint64, int*);
+int fetchstr(uint64, char**);
+int fetchaddr(uint64, uint64*);
void syscall(void);
// timer.c
@@ -176,8 +178,8 @@ void kvmalloc(void);
pde_t* setupkvm(void);
char* uva2ka(pde_t*, char*);
int allocuvm(pde_t*, uint, uint);
-int deallocuvm(pde_t*, uint, uint);
-void freevm(pde_t*);
+int deallocuvm(pde_t*, uint64, uint64);
+void freevm(pde_t*, uint64);
void inituvm(pde_t*, char*, uint);
int loaduvm(pde_t*, char*, struct inode*, uint, uint);
pde_t* copyuvm(pde_t*, uint);