mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 15:43:15 +00:00
bsp/leon3: Fix incompatible function types
This fix relates to a Coverity issue (PW.INCOMPATIBLE_PARAM).
This commit is contained in:
@@ -130,10 +130,10 @@ static void leon3_tc_do_tick(void)
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define Clock_driver_support_install_isr( _new ) \
|
#define Clock_driver_support_install_isr(isr) \
|
||||||
bsp_clock_handler_install(_new)
|
bsp_clock_handler_install(isr)
|
||||||
|
|
||||||
static void bsp_clock_handler_install(rtems_isr *new)
|
static void bsp_clock_handler_install(rtems_interrupt_handler isr)
|
||||||
{
|
{
|
||||||
rtems_status_code sc;
|
rtems_status_code sc;
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ static void bsp_clock_handler_install(rtems_isr *new)
|
|||||||
clkirq,
|
clkirq,
|
||||||
"Clock",
|
"Clock",
|
||||||
RTEMS_INTERRUPT_UNIQUE,
|
RTEMS_INTERRUPT_UNIQUE,
|
||||||
new,
|
isr,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
if (sc != RTEMS_SUCCESSFUL) {
|
if (sc != RTEMS_SUCCESSFUL) {
|
||||||
@@ -234,6 +234,8 @@ static void leon3_clock_initialize(void)
|
|||||||
|
|
||||||
#define Clock_driver_timecounter_tick() leon3_tc_do_tick()
|
#define Clock_driver_timecounter_tick() leon3_tc_do_tick()
|
||||||
|
|
||||||
|
#define BSP_FEATURE_IRQ_EXTENSION
|
||||||
|
|
||||||
#include "../../../shared/dev/clock/clockimpl.h"
|
#include "../../../shared/dev/clock/clockimpl.h"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user