Changeset 49bf16a in rtems


Ignore:
Timestamp:
Dec 11, 2007, 11:44:29 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
ae8600f
Parents:
87f08a6
Message:

2007-12-11 Joel Sherrill <joel.sherrill@…>

  • score/src/pheapallocatealigned.c, score/src/pheapgetblocksize.c: Reverse file contents.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r87f08a6 r49bf16a  
     12007-12-11      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/src/pheapallocatealigned.c, score/src/pheapgetblocksize.c:
     4        Reverse file contents.
     5
    162007-12-06      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/score/src/pheapallocatealigned.c

    r87f08a6 r49bf16a  
    1717#include <rtems/score/protectedheap.h>
    1818
    19 boolean _Protected_heap_Get_block_size(
    20   Heap_Control        *the_heap,
    21   void                *starting_address,
    22   size_t              *size
     19void *_Protected_heap_Allocate_aligned(
     20  Heap_Control *the_heap,
     21  size_t        size,
     22  uint32_t      alignment
    2323)
    2424{
    25   boolean status;
     25  void *p;
    2626
    2727  _RTEMS_Lock_allocator();
    28     status = _Heap_Size_of_user_area( the_heap, starting_address, size );
     28    p = _Heap_Allocate_aligned( the_heap, size, alignment );
    2929  _RTEMS_Unlock_allocator();
    30   return status;
     30  return p;
    3131}
     32
  • cpukit/score/src/pheapgetblocksize.c

    r87f08a6 r49bf16a  
    1717#include <rtems/score/protectedheap.h>
    1818
    19 void *_Protected_heap_Allocate_aligned(
    20   Heap_Control *the_heap,
    21   size_t        size,
    22   uint32_t      alignment
     19boolean _Protected_heap_Get_block_size(
     20  Heap_Control        *the_heap,
     21  void                *starting_address,
     22  size_t              *size
    2323)
    2424{
    25   void *p;
     25  boolean status;
    2626
    2727  _RTEMS_Lock_allocator();
    28     p = _Heap_Allocate_aligned( the_heap, size, alignment );
     28    status = _Heap_Size_of_user_area( the_heap, starting_address, size );
    2929  _RTEMS_Unlock_allocator();
    30   return p;
     30  return status;
    3131}
    32 
Note: See TracChangeset for help on using the changeset viewer.