mirror of https://github.com/l4ka/pistachio.git
UIC:
* Fixed first interrupt after associating the handler getting eaten * Don't use IPI IRQs unless we're using SMP
This commit is contained in:
parent
bf8fce9cc1
commit
d0758fa881
|
@ -169,11 +169,13 @@ void SECTION (".init") intctrl_t::init_arch()
|
|||
|
||||
void SECTION(".init") intctrl_t::init_cpu(int cpu)
|
||||
{
|
||||
#ifdef CONFIG_SMP
|
||||
ASSERT(cpu < 4);
|
||||
|
||||
/* map IPIs */
|
||||
set_irq_routing(get_ipi_irq(cpu, 0), cpu);
|
||||
enable(get_ipi_irq(cpu, 0));
|
||||
#endif
|
||||
}
|
||||
|
||||
word_t intctrl_t::init_controllers() {
|
||||
|
|
|
@ -158,8 +158,10 @@ public:
|
|||
|
||||
bool is_pending(word_t irq);
|
||||
|
||||
void enable(word_t irq)
|
||||
{ unmask(irq); }
|
||||
void enable(word_t irq) {
|
||||
if (unmask(irq))
|
||||
::handle_interrupt(irq);
|
||||
}
|
||||
|
||||
void disable(word_t irq)
|
||||
{ mask(irq); }
|
||||
|
|
Loading…
Reference in New Issue