summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorrsc <rsc>2009-03-08 21:41:30 +0000
committerrsc <rsc>2009-03-08 21:41:30 +0000
commitb7f653dc49dd4af29a3b7bdd66cd712bea166623 (patch)
treee3bc07bdacacf2a7e311f3a87bbad243e5ba79d7 /main.c
parent8220135362c02b5e4a5532a561c6c1bd4b4d1540 (diff)
downloadxv6-labs-b7f653dc49dd4af29a3b7bdd66cd712bea166623.tar.gz
xv6-labs-b7f653dc49dd4af29a3b7bdd66cd712bea166623.tar.bz2
xv6-labs-b7f653dc49dd4af29a3b7bdd66cd712bea166623.zip
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
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 0 insertions, 5 deletions
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());