Ignore:
Timestamp:
2007-02-03T21:26:54Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf5ddf6
Parents:
80bcaed
Message:

When clock() is called by an external interrupt dispatched by the IRQ dispatcher,
no spinlock can be held or the kernel will not be preemptive. This fixes Ticket #24.

Formating and indentation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/drivers/i8259.c

    r80bcaed rf619ec11  
    8787
    8888        pic_disable_irqs(0xffff);               /* disable all irq's */
    89         pic_enable_irqs(1<<IRQ_PIC1);           /* but enable pic1 */
     89        pic_enable_irqs(1 << IRQ_PIC1);         /* but enable pic1 */
    9090}
    9191
     
    120120void pic_eoi(void)
    121121{
    122         outb(0x20,0x20);
    123         outb(0xa0,0x20);
     122        outb(0x20, 0x20);
     123        outb(0xa0, 0x20);
    124124}
    125125
Note: See TracChangeset for help on using the changeset viewer.