Rev 4652 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4652 | Rev 4665 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | */ |
62 | */ |
63 | ipl_t interrupts_enable(void) |
63 | ipl_t interrupts_enable(void) |
64 | { |
64 | { |
65 | ipl_t ipl = current_status_reg_read(); |
65 | ipl_t ipl = current_status_reg_read(); |
66 | 66 | ||
67 | /* |
- | |
68 | * Current implementation of interrupt handling is non-nested mode. |
- | |
69 | * So we don't enable interrupt if servicing IRQ. |
- | |
70 | * ToDo: Re-implement interrupt handling to handle nested interrupts. |
- | |
71 | */ |
- | |
72 | if ((ipl & 0x1f) != UNDEFINED_MODE) |
- | |
73 | current_status_reg_control_write(ipl & ~STATUS_REG_IRQ_DISABLED_BIT); |
67 | current_status_reg_control_write(ipl & ~STATUS_REG_IRQ_DISABLED_BIT); |
74 | 68 | ||
75 | return ipl; |
69 | return ipl; |
76 | } |
70 | } |
77 | 71 | ||
78 | /** Restore interrupt priority level. |
72 | /** Restore interrupt priority level. |