summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-08-21 21:14:29 -0400
committerFrans Kaashoek <[email protected]>2011-08-21 21:14:29 -0400
commit3682474f779c02419623ae16de49a12da8d23af7 (patch)
tree16e433831469f089880b6829ffedd5c6e3f0d11e
parentcd3d739e6f3d4d356ac8c34b25f16df82a5f2789 (diff)
downloadxv6-labs-3682474f779c02419623ae16de49a12da8d23af7.tar.gz
xv6-labs-3682474f779c02419623ae16de49a12da8d23af7.tar.bz2
xv6-labs-3682474f779c02419623ae16de49a12da8d23af7.zip
delete dead code
-rw-r--r--kalloc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kalloc.c b/kalloc.c
index 35ea6ed..897d9d7 100644
--- a/kalloc.c
+++ b/kalloc.c
@@ -21,7 +21,7 @@ struct {
extern char end[]; // first address after kernel loaded from ELF file
static char *newend;
-// simple page allocator to get off the ground during entry
+// A simple page allocator to get off the ground during entry
char *
enter_alloc(void)
{
@@ -36,12 +36,6 @@ enter_alloc(void)
return p;
}
-uint
-detect_memory(void)
-{
- return 0xE000000;
-}
-
// Initialize free list of physical pages.
void
kinit(void)