diff options
author | rtm <rtm> | 2006-07-11 18:45:27 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-07-11 18:45:27 +0000 |
commit | b41b38d0da0854f3fa92967b70180ea1156154d4 (patch) | |
tree | 9066b45e76546b6e12ee2dd572c4505c34f420ca /main.c | |
parent | b548df152b5a53ea8cfcb2d94fbdee07884d8050 (diff) | |
download | xv6-labs-b41b38d0da0854f3fa92967b70180ea1156154d4.tar.gz xv6-labs-b41b38d0da0854f3fa92967b70180ea1156154d4.tar.bz2 xv6-labs-b41b38d0da0854f3fa92967b70180ea1156154d4.zip |
give each cpu its own clock, so that preemption works on cpu 1
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,8 @@ main() acquire_spinlock(&kernel_lock); idtinit(); // CPU's idt lapic_init(cpu()); + lapic_timerinit(); + lapic_enableintr(); scheduler(); } acpu = 1; |