From b7f653dc49dd4af29a3b7bdd66cd712bea166623 Mon Sep 17 00:00:00 2001 From: rsc <rsc> Date: Sun, 8 Mar 2009 21:41:30 +0000 Subject: xv6: boot loader adjustments do Bochs breakpoint and spin in bootasm.S. not needed in bootmain too. fix readseg bug (rounding of va). zero segments when memsz > filesz. no need to clear BSS in kernel main. make bootother.S like bootasm.S --- main.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index c93d9bf..fbad920 100644 --- a/main.c +++ b/main.c @@ -12,11 +12,6 @@ static void mpmain(void) __attribute__((noreturn)); int main(void) { - extern char edata[], end[]; - - // clear BSS - memset(edata, 0, end - edata); - mp_init(); // collect info about this machine lapic_init(mp_bcpu()); cprintf("\ncpu%d: starting xv6\n\n", cpu()); -- cgit v1.2.3