Changeset f619ec11 in mainline for kernel/arch/ia32/src/smp


Ignore:
Timestamp:
2007-02-03T21:26:54Z (19 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/smp/smp.c

    r80bcaed rf619ec11  
    113113         * Set the warm-reset vector to the real-mode address of 4K-aligned ap_boot()
    114114         */
    115         *((uint16_t *) (PA2KA(0x467+0))) =  ((uintptr_t) ap_boot) >> 4; /* segment */
    116         *((uint16_t *) (PA2KA(0x467+2))) =  0;                          /* offset */
     115        *((uint16_t *) (PA2KA(0x467 + 0))) =  ((uintptr_t) ap_boot) >> 4;       /* segment */
     116        *((uint16_t *) (PA2KA(0x467 + 2))) =  0;                                /* offset */
    117117       
    118118        /*
     
    120120         * BIOS will not do the POST after the INIT signal.
    121121         */
    122         outb(0x70,0xf);
    123         outb(0x71,0xa);
     122        outb(0x70, 0xf);
     123        outb(0x71, 0xa);
    124124
    125125        pic_disable_irqs(0xffff);
Note: See TracChangeset for help on using the changeset viewer.