Changeset 5b33dc80 in rtems for cpukit/score/src/wkspace.c


Ignore:
Timestamp:
Jan 9, 2008, 10:35:10 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
bc0ff47
Parents:
4d320062
Message:

2008-01-09 Joel Sherrill <joel.sherrill@…>

  • score/include/rtems/score/wkspace.h, score/inline/rtems/score/wkspace.inl, score/src/wkspace.c: Do not inline _Workspace_Free or _Workspace_Allocate since they are not always inlined and actually smaller overall as subroutines. They are not particularly time critical so inlining is not absolutely necessary.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/wkspace.c

    r4d320062 r5b33dc80  
    2323#include <string.h>  /* for memset */
    2424
    25 /*PAGE
    26  *
     25/*
    2726 *  _Workspace_Handler_initialization
    2827 */
    29 
    3028void _Workspace_Handler_initialization(
    3129  void       *starting_address,
     
    6058}
    6159
    62 /*PAGE
    63  *
     60/*
     61 *  _Workspace_Allocate
     62 */
     63void *_Workspace_Allocate(
     64  size_t   size
     65)
     66{
     67   return _Heap_Allocate( &_Workspace_Area, size );
     68}
     69
     70/*
     71 *  _Workspace_Allocate
     72 */
     73boolean _Workspace_Free(
     74  void *block
     75)
     76{
     77   return _Heap_Free( &_Workspace_Area, block );
     78}
     79
     80/*
    6481 *  _Workspace_Allocate_or_fatal_error
    65  *
    6682 */
    67 
    6883void *_Workspace_Allocate_or_fatal_error(
    6984  size_t      size
Note: See TracChangeset for help on using the changeset viewer.