mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
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:
@@ -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>
|
2007-12-01 Till Straumann <strauman@slac.stanford.edu>
|
||||||
|
|
||||||
* shared/pci/detect_raven_bridge.c: use ifdef mvme2100
|
* shared/pci/detect_raven_bridge.c: use ifdef mvme2100
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
#include <bsp/irq.h>
|
#include <bsp/irq.h>
|
||||||
#include <libcpu/c_clock.h>
|
#include <libcpu/c_clock.h>
|
||||||
|
#include <libcpu/cpuIdent.h>
|
||||||
|
|
||||||
static rtems_irq_connect_data clockIrqData;
|
static rtems_irq_connect_data clockIrqData;
|
||||||
static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
|
static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
|
||||||
@@ -32,5 +33,8 @@ int BSP_disconnect_clock_handler (void)
|
|||||||
|
|
||||||
int BSP_connect_clock_handler (void)
|
int BSP_connect_clock_handler (void)
|
||||||
{
|
{
|
||||||
|
if ( ppc_cpu_is_bookE() )
|
||||||
|
clockIrqData.hdl = clockIsrBookE;
|
||||||
|
|
||||||
return BSP_install_rtems_irq_handler (&clockIrqData);
|
return BSP_install_rtems_irq_handler (&clockIrqData);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user