Changeset 00eace3 in mainline


Ignore:
Timestamp:
2009-02-21T19:19:35Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9446f39
Parents:
1e23e16
Message:

Fix UP builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/irq.c

    r1e23e16 r00eace3  
    8383 * This lock must be taken only when interrupts are disabled.
    8484 */
    85 static SPINLOCK_INITIALIZE(irq_kernel_hash_table_lock);
     85SPINLOCK_INITIALIZE(irq_kernel_hash_table_lock);
    8686/** The kernel IRQ hash table. */
    8787static hash_table_t irq_kernel_hash_table;
     
    179179void irq_register(irq_t *irq)
    180180{
    181         spinlock_t *lock = &irq_kernel_hash_table_lock;
    182         hash_table_t *table = &irq_kernel_hash_table;
    183181        ipl_t ipl;
    184182        unative_t key[] = {
     
    188186       
    189187        ipl = interrupts_disable();
    190         spinlock_lock(lock);
     188        spinlock_lock(&irq_kernel_hash_table_lock);
    191189        spinlock_lock(&irq->lock);
    192         hash_table_insert(table, key, &irq->link);
     190        hash_table_insert(&irq_kernel_hash_table, key, &irq->link);
    193191        spinlock_unlock(&irq->lock);   
    194         spinlock_unlock(lock);
     192        spinlock_unlock(&irq_kernel_hash_table_lock);
    195193        interrupts_restore(ipl);
    196194}
Note: See TracChangeset for help on using the changeset viewer.