- added critical section - added interrupt global enable/disable - added console::getInstanveByName git-svn-id: http://moon:8086/svn/mips@76 a8ebac50-d88d-4704-bea3-6648445a41b3
19 lines
417 B
C
19 lines
417 B
C
#ifndef IRQ_H
|
|
#define IRQ_H
|
|
|
|
#include "xcpt.h"
|
|
|
|
#define MAX_NUM_IRQ 8
|
|
|
|
typedef void (*fp_irq_t)(struct xcptcontext * xcp);
|
|
|
|
void interrupt_init(void);
|
|
int _irq_dispatch(struct xcptcontext * xcp);
|
|
void interrupt_register(int irq_num, fp_irq_t fp);
|
|
void interrupt_enable(int irq_num);
|
|
void interrupt_disable(int irq_num);
|
|
void interrupt_enable_all();
|
|
void interrupt_disable_all();
|
|
|
|
#endif // IRQ_H
|