Changeset c6810c8 in rtems for c/src/lib/libbsp/powerpc/qemuppc


Ignore:
Timestamp:
Jun 19, 2017, 12:09:28 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ae3e6af8
Parents:
b361cb6c
git-author:
Sebastian Huber <sebastian.huber@…> (06/19/17 12:09:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/20/17 05:42:25)
Message:

bsps: Improve interrupt vector enable/disable API

Change bsp_interrupt_vector_enable() and bsp_interrupt_vector_disable()
to not return a status code. Add bsp_interrupt_assert() and use it to
validate the vector number in the vector enable/disable implementations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qemuppc/irq/irq_init.c

    rb361cb6c rc6810c8  
    3939 * functions to enable/disable a source at the ipic
    4040 */
    41 rtems_status_code bsp_interrupt_vector_enable( rtems_vector_number irqnum)
     41void bsp_interrupt_vector_enable( rtems_vector_number irqnum)
    4242{
    4343  /* FIXME: do something */
    44   return RTEMS_SUCCESSFUL;
     44  bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
    4545}
    4646
    47 rtems_status_code bsp_interrupt_vector_disable( rtems_vector_number irqnum)
     47void bsp_interrupt_vector_disable( rtems_vector_number irqnum)
    4848{
    4949  /* FIXME: do something */
    50   return RTEMS_SUCCESSFUL;
     50  bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
    5151}
    5252
Note: See TracChangeset for help on using the changeset viewer.