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

* shared/clock/p_clock.c: (run-time) check for e500-cpu
	and install different ISR for that type of CPU.
This commit is contained in:
Till Straumann
2007-12-01 21:32:49 +00:00
parent 4f2d5f021b
commit 2cb549f8dc
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/clock/p_clock.c: (run-time) check for e500-cpu
and install different ISR for that type of CPU.
2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/pci/detect_raven_bridge.c: use ifdef mvme2100

View File

@@ -17,6 +17,7 @@
#include <bsp.h>
#include <bsp/irq.h>
#include <libcpu/c_clock.h>
#include <libcpu/cpuIdent.h>
static rtems_irq_connect_data clockIrqData;
static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
@@ -32,5 +33,8 @@ int BSP_disconnect_clock_handler (void)
int BSP_connect_clock_handler (void)
{
if ( ppc_cpu_is_bookE() )
clockIrqData.hdl = clockIsrBookE;
return BSP_install_rtems_irq_handler (&clockIrqData);
}