diff options
author | rsc <rsc> | 2009-03-08 21:41:30 +0000 |
---|---|---|
committer | rsc <rsc> | 2009-03-08 21:41:30 +0000 |
commit | b7f653dc49dd4af29a3b7bdd66cd712bea166623 (patch) | |
tree | e3bc07bdacacf2a7e311f3a87bbad243e5ba79d7 /main.c | |
parent | 8220135362c02b5e4a5532a561c6c1bd4b4d1540 (diff) | |
download | xv6-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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()); |