summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2011-09-13 13:14:52 -0400
committerRobert Morris <[email protected]>2011-09-13 13:14:52 -0400
commitc092540e396ae748e3775e582681e51abd94f41d (patch)
tree16737f3ce8187280af36183c5f8c05cdc85a16bc /defs.h
parent7e7cb106d0b2408794d814ae26ee945bdb83886a (diff)
downloadxv6-labs-c092540e396ae748e3775e582681e51abd94f41d.tar.gz
xv6-labs-c092540e396ae748e3775e582681e51abd94f41d.tar.bz2
xv6-labs-c092540e396ae748e3775e582681e51abd94f41d.zip
eliminate enter_alloc -- use kalloc for everything
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/defs.h b/defs.h
index 921c7bf..efbbe3d 100644
--- a/defs.h
+++ b/defs.h
@@ -62,11 +62,10 @@ extern uchar ioapicid;
void ioapicinit(void);
// kalloc.c
-char* enter_alloc(void);
char* kalloc(void);
void kfree(char*);
-void kinit(void);
-uint detect_memory(void);
+void kinit1(void*, void*);
+void kinit2(void*, void*);
// kbd.c
void kbdintr(void);
@@ -165,7 +164,7 @@ void uartputc(int);
void seginit(void);
void kvmalloc(void);
void vmenable(void);
-pde_t* setupkvm(char* (*alloc)());
+pde_t* setupkvm();
char* uva2ka(pde_t*, char*);
int allocuvm(pde_t*, uint, uint);
int deallocuvm(pde_t*, uint, uint);