delete dead code
This commit is contained in:
parent
cd3d739e6f
commit
3682474f77
8
kalloc.c
8
kalloc.c
|
@ -21,7 +21,7 @@ struct {
|
||||||
extern char end[]; // first address after kernel loaded from ELF file
|
extern char end[]; // first address after kernel loaded from ELF file
|
||||||
static char *newend;
|
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 *
|
char *
|
||||||
enter_alloc(void)
|
enter_alloc(void)
|
||||||
{
|
{
|
||||||
|
@ -36,12 +36,6 @@ enter_alloc(void)
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint
|
|
||||||
detect_memory(void)
|
|
||||||
{
|
|
||||||
return 0xE000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize free list of physical pages.
|
// Initialize free list of physical pages.
|
||||||
void
|
void
|
||||||
kinit(void)
|
kinit(void)
|
||||||
|
|
Loading…
Reference in a new issue