Changeset 88c40ef8 in rtems


Ignore:
Timestamp:
Feb 13, 2020, 10:34:34 AM (3 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2807d556
Parents:
f53473f
git-author:
Sebastian Huber <sebastian.huber@…> (02/13/20 10:34:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/17/20 07:03:55)
Message:

score: Remove unused _Workspace_Allocate_aligned()

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/wkspace.h

    rf53473f r88c40ef8  
    7676
    7777/**
    78  * @brief Allocates aligned memory from workspace.
    79  *
    80  * @param size The size of the requested memory.
    81  * @param alignment The alignment of the requested memory.
    82  *
    83  * @retval other The memory area begin.
    84  * @retval NULL Not enough resources.
    85  */
    86 void *_Workspace_Allocate_aligned( size_t size, size_t alignment );
    87 
    88 /**
    8978 * @brief Frees memory to the workspace.
    9079 *
  • cpukit/score/src/wkspace.c

    rf53473f r88c40ef8  
    133133}
    134134
    135 void *_Workspace_Allocate_aligned( size_t size, size_t alignment )
    136 {
    137   return _Heap_Allocate_aligned( &_Workspace_Area, size, alignment );
    138 }
    139 
    140135/*
    141136 *  _Workspace_Free
  • testsuites/sptests/spwkspace/init.c

    rf53473f r88c40ef8  
    5757}
    5858
    59 static void test_workspace_allocate_aligned(void)
    60 {
    61   uintptr_t align = 512;
    62   void *p = _Workspace_Allocate_aligned( 1, align );
    63 
    64   rtems_test_assert( p != NULL );
    65   rtems_test_assert( ((uintptr_t) p & (align - 1)) == 0 );
    66 
    67   _Workspace_Free( p );
    68 }
    69 
    7059rtems_task Init(
    7160  rtems_task_argument argument
     
    114103  test_workspace_string_duplicate();
    115104
    116   puts( "_Workspace_Allocate_aligned" );
    117   test_workspace_allocate_aligned();
    118 
    119105  TEST_END();
    120106  rtems_test_exit( 0 );
Note: See TracChangeset for help on using the changeset viewer.