221,7 → 221,7 |
if (!use_apic) |
IDT_place(0x40,ll_timer); |
else |
IDT_place(0x40,ll_apic_timer); |
IDT_place(0x66,ll_apic_timer); |
|
if (l->mode != LL_PERIODIC) { |
message("One-shot mode\n"); |
266,7 → 266,6 |
timermode = l->mode; |
|
if (!use_apic) { |
|
if (ll_arch.x86.cpu > 4) { |
/* Timer1: mode 0, time const 0... */ |
pit_init(1, TMR_MD0, 0); |
276,13 → 275,12 |
pit_init(2, TMR_MD0, 0); |
outp(0x61, 3); |
} |
} |
|
mask = ll_in(0x21); |
mask &= 0xFE; /* 0xFE = ~0x01 */ |
ll_out(0x21, mask); |
|
} |
|
/* Init the event list... */ |
for (i = 0; i < MAX_EVENT; i++) { |
if (i < MAX_EVENT - 1) { |