Changeset dea4bbe3 in rtems


Ignore:
Timestamp:
06/01/18 05:00:37 (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
c934365f
Parents:
b8774933
git-author:
Sebastian Huber <sebastian.huber@…> (06/01/18 05:00:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/05/18 05:08:40)
Message:

bsps: Avoid malloc() in generic IRQ support

Use rtems_heap_allocate_aligned_with_boundary() instead of malloc() to
avoid a dependency on errno.

File:
1 edited

Legend:

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

    rb8774933 rdea4bbe3  
    1010 * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
    1111 *
    12  * Copyright (c) 2008, 2017 embedded brains GmbH.
     12 * Copyright (c) 2008, 2018 embedded brains GmbH.
    1313 *
    1414 *  embedded brains GmbH
     
    3131#include <rtems/score/processormask.h>
    3232#include <rtems/score/sysstate.h>
     33#include <rtems/malloc.h>
    3334
    3435#ifdef BSP_INTERRUPT_USE_INDEX_TABLE
     
    142143    }
    143144  #else
    144     return malloc(sizeof(bsp_interrupt_handler_entry));
     145    return rtems_heap_allocate_aligned_with_boundary(sizeof(bsp_interrupt_handler_entry), 0, 0);
    145146  #endif
    146147}
Note: See TracChangeset for help on using the changeset viewer.