From 025cabd2caa41d567d06a7c43f910621b99e64a4 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 15 Sep 2010 21:59:11 -0400 Subject: Move init code from _start() to post(). Move the shadow calls from _start() to post() - this ensures all the one time init code is in post(). Also, reorg post so that malloc setup is done before ivt/bda/ebda setup. This is in preparation for relocating the 32bit flat init code. --- src/pmm.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/pmm.c') diff --git a/src/pmm.c b/src/pmm.c index 682be39..f5e58ad 100644 --- a/src/pmm.c +++ b/src/pmm.c @@ -252,9 +252,6 @@ malloc_finalize(void) add_e820((u32)info->dataend, giveback, E820_RAM); dprintf(1, "Returned %d bytes of ZoneHigh\n", giveback); } - - // Clear low-memory allocations. - memset((void*)BUILD_STACK_ADDR, 0, BUILD_EBDA_MINIMUM - BUILD_STACK_ADDR); } -- cgit v1.2.1