summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9015ff7..fe85054 100644
--- a/main.c
+++ b/main.c
@@ -38,11 +38,14 @@ main()
// clear BSS
memset(edata, 0, end - edata);
- mp_init(); // just set up apic so cpu() works
+ mp_init(); // collect info about this machine
+
use_printf_lock = 1;
cpus[cpu()].clis = 1; // cpu starts as if we had called cli()
+ lapic_init(mp_bcpu());
+
cprintf("\nxV6\n\n");
pic_init(); // initialize PIC