2007-12-11 Till Straumann <strauman@slac.stanford.edu>

* new-exceptions/bspsupport/irq.c: enable/disable
	irq at PIC if an initial handler is present/absent
	(reproduce traditional semantics).
This commit is contained in:
Till Straumann
2007-12-12 00:47:49 +00:00
parent 7988f8e8a6
commit 8d2487fd60
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2007-12-11 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/irq.c: enable/disable
irq at PIC if an initial handler is present/absent
(reproduce traditional semantics).
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/e500_raw_exc_init.c: map DEC

View File

@@ -346,6 +346,12 @@ int BSP_rtems_irq_mngt_set(rtems_irq_global_settings* config)
if (vchain->on)
vchain->on(vchain);
}
if ( vchain != &rtems_hdl_tbl[i] ) {
/* at least one handler registered */
BSP_enable_irq_at_pic(i);
} else {
BSP_disable_irq_at_pic(i);
}
}
rtems_interrupt_enable(level);