From a4b213cf49cccc8287e638badaac10d0521d5886 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Mon, 15 Aug 2011 20:11:13 -0400 Subject: Avoid "boot" in xv6 --- kalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kalloc.c') diff --git a/kalloc.c b/kalloc.c index cf89dd4..4cc4202 100644 --- a/kalloc.c +++ b/kalloc.c @@ -21,15 +21,15 @@ struct { extern char end[]; // first address after kernel loaded from ELF file char *newend; -// simple page allocator to get off the ground during boot +// simple page allocator to get off the ground during entry char * -boot_alloc(void) +enter_alloc(void) { if (newend == 0) newend = end; if ((uint) newend >= KERNBASE + 0x400000) - panic("only first 4Mbyte are mapped during boot"); + panic("only first 4Mbyte are mapped during entry"); void *p = (void*)PGROUNDUP((uint)newend); memset(p, 0, PGSIZE); newend = newend + PGSIZE; -- cgit v1.2.3