]> Devi Nivas Git - cs3210-lab1.git/commitdiff
delete dead code
authorFrans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>
Mon, 22 Aug 2011 01:14:29 +0000 (21:14 -0400)
committerFrans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>
Mon, 22 Aug 2011 01:14:29 +0000 (21:14 -0400)
kalloc.c

index 35ea6ed13d58e43d2f0cc410fb9b28e270016188..897d9d7a13148b01a3e345b40314ee51d19649bc 100644 (file)
--- 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
+// 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)