Subversion Repositories HelenOS

Rev

Rev 4153 | Rev 4263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4192
Line 75... Line 75...
75
#include <ipc/ipc.h>
75
#include <ipc/ipc.h>
76
#include <ipc/irq.h>
76
#include <ipc/irq.h>
77
#include <syscall/copy.h>
77
#include <syscall/copy.h>
78
#include <console/console.h>
78
#include <console/console.h>
79
#include <print.h>
79
#include <print.h>
-
 
80
// explicitly enable irq
-
 
81
#include <arch/interrupt.h>
80
 
82
 
81
/** Free the top-half pseudocode.
83
/** Free the top-half pseudocode.
82
 *
84
 *
83
 * @param code      Pointer to the top-half pseudocode.
85
 * @param code      Pointer to the top-half pseudocode.
84
 */
86
 */
Line 192... Line 194...
192
    spinlock_unlock(&box->irq_lock);
194
    spinlock_unlock(&box->irq_lock);
193
    spinlock_unlock(&irq->lock);
195
    spinlock_unlock(&irq->lock);
194
    spinlock_unlock(&irq_uspace_hash_table_lock);
196
    spinlock_unlock(&irq_uspace_hash_table_lock);
195
 
197
 
196
    interrupts_restore(ipl);
198
    interrupts_restore(ipl);
-
 
199
//  explicitly enable irq
-
 
200
/*  different byteorder?
-
 
201
 *  trap_virtual_enable_irqs( 1 << ( irq->inr - 1 ));
-
 
202
 */
-
 
203
    trap_virtual_enable_irqs( 1 << ( irq->inr + 7 ));
197
    return EOK;
204
    return EOK;
198
}
205
}
199
 
206
 
200
/** Unregister task from IRQ notification.
207
/** Unregister task from IRQ notification.
201
 *
208
 *