Changeset 9a029ce in rtems


Ignore:
Timestamp:
Nov 9, 2018, 12:06:52 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
28bf4ca
Parents:
6efc831
git-author:
Sebastian Huber <sebastian.huber@…> (11/09/18 12:06:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/12/18 12:26:22)
Message:

bsps/irq: Use rtems_malloc()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/irq/irq-generic.c

    r6efc831 r9a029ce  
    133133static bsp_interrupt_handler_entry *bsp_interrupt_allocate_handler_entry(void)
    134134{
     135  bsp_interrupt_handler_entry *e;
     136
    135137  #ifdef BSP_INTERRUPT_NO_HEAP_USAGE
    136138    rtems_vector_number index = 0;
     139
    137140    if (bsp_interrupt_allocate_handler_index(0, &index)) {
    138       return &bsp_interrupt_handler_table [index];
     141      e = &bsp_interrupt_handler_table [index];
    139142    } else {
    140       return NULL;
     143      e = NULL;
    141144    }
    142145  #else
    143     return rtems_heap_allocate_aligned_with_boundary(sizeof(bsp_interrupt_handler_entry), 0, 0);
     146    e = rtems_malloc(sizeof(*e));
    144147  #endif
     148
     149  return e;
    145150}
    146151
Note: See TracChangeset for help on using the changeset viewer.