source: rtems/cpukit/score/src/pheapallocate.c @ d7c3883

4.115
Last change on this file since d7c3883 was 9224a751, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 11/30/09 at 13:06:21

Changed base implementation of protected heap allocations to use _Heap_Allocate_aligned_with_boundary().

  • Property mode set to 100644
File size: 821 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ScoreProtHeap
5 *
6 * @brief Protected Heap Handler implementation.
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2007.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 *
17 *  $Id$
18 */
19
20#if HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/system.h>
25#include <rtems/score/protectedheap.h>
26
27void *_Protected_heap_Allocate_aligned_with_boundary(
28  Heap_Control *heap,
29  uintptr_t     size,
30  uintptr_t     alignment,
31  uintptr_t     boundary
32)
33{
34  void *p;
35
36  _RTEMS_Lock_allocator();
37    p = _Heap_Allocate_aligned_with_boundary(
38      heap,
39      size,
40      alignment,
41      boundary
42    );
43  _RTEMS_Unlock_allocator();
44
45  return p;
46}
Note: See TracBrowser for help on using the repository browser.