diff options
author | rsc <rsc> | 2007-09-26 20:34:12 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-09-26 20:34:12 +0000 |
commit | d5596cd61dd588781cde4b647075e39f07608c0a (patch) | |
tree | 406879201f72a3c9ef292e8ce2eb1cddc8131d79 /defs.h | |
parent | 355073ea9e7528e45143efaa9631efcf159a2b68 (diff) | |
download | xv6-labs-d5596cd61dd588781cde4b647075e39f07608c0a.tar.gz xv6-labs-d5596cd61dd588781cde4b647075e39f07608c0a.tar.bz2 xv6-labs-d5596cd61dd588781cde4b647075e39f07608c0a.zip |
Apparently the initial interrupt count lapic[TICR]
must be set *after* initializing the lapic[TIMER] vector.
Doing this, we now get clock interrupts on cpu 1.
(No idea why we always got them on cpu 0.)
Don't write to TCCR - it is read-only.
Diffstat (limited to 'defs.h')
-rw-r--r-- | defs.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -70,13 +70,9 @@ void kbd_intr(void); // lapic.c int cpu(void); extern volatile uint* lapic; -void lapic_disableintr(void); -void lapic_enableintr(void); void lapic_eoi(void); void lapic_init(int); void lapic_startap(uchar, uint); -void lapic_timerinit(void); -void lapic_timerintr(void); // mp.c extern int ismp; |