forked from Imagelibrary/rtems
bsps/irq: Move bsp_interrupt_handler_is_empty()
This function is only used by one BSP. Update #3269.
This commit is contained in:
@@ -351,6 +351,17 @@ rtems_status_code bsp_interrupt_facility_initialize(void)
|
|||||||
return RTEMS_SUCCESSFUL;
|
return RTEMS_SUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool bsp_interrupt_handler_is_empty(rtems_vector_number vector)
|
||||||
|
{
|
||||||
|
rtems_vector_number index;
|
||||||
|
rtems_interrupt_entry *head;
|
||||||
|
|
||||||
|
index = bsp_interrupt_handler_index(vector);
|
||||||
|
head = &bsp_interrupt_handler_table[index];
|
||||||
|
|
||||||
|
return bsp_interrupt_is_empty_handler_entry(head);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Global so the asm handler can call it.
|
* Global so the asm handler can call it.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -415,17 +415,6 @@ static inline void bsp_interrupt_handler_dispatch( rtems_vector_number vector )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Is interrupt handler empty.
|
|
||||||
*
|
|
||||||
* This routine returns true if the handler is empty and has not been
|
|
||||||
* initialised else false is returned. The interrupt lock is not used
|
|
||||||
* so this call can be used from within interrupts.
|
|
||||||
*
|
|
||||||
* @return If empty true shall be returned else false is returned.
|
|
||||||
*/
|
|
||||||
bool bsp_interrupt_handler_is_empty(rtems_vector_number vector);
|
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -462,22 +462,3 @@ rtems_status_code rtems_interrupt_handler_remove(
|
|||||||
{
|
{
|
||||||
return bsp_interrupt_handler_remove(vector, handler, arg);
|
return bsp_interrupt_handler_remove(vector, handler, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool bsp_interrupt_handler_is_empty(rtems_vector_number vector)
|
|
||||||
{
|
|
||||||
rtems_vector_number index = 0;
|
|
||||||
rtems_interrupt_entry *head = NULL;
|
|
||||||
bool empty;
|
|
||||||
|
|
||||||
/* For use in interrupts so no lock. */
|
|
||||||
|
|
||||||
/* Get handler table index */
|
|
||||||
index = bsp_interrupt_handler_index(vector);
|
|
||||||
|
|
||||||
/* Get head entry of the handler list for the vector */
|
|
||||||
head = &bsp_interrupt_handler_table [index];
|
|
||||||
|
|
||||||
empty = bsp_interrupt_is_empty_handler_entry(head);
|
|
||||||
|
|
||||||
return empty;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user