Changeset 78211376 in rtems


Ignore:
Timestamp:
Dec 12, 2019, 7:53:32 AM (7 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f7cd8c9
Parents:
3fba9de2
git-author:
Sebastian Huber <sebastian.huber@…> (12/12/19 07:53:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/13/19 07:35:21)
Message:

score: Remove _Workspace_Allocate_or_fatal_error()

This function is unused.

Update #3735.

Files:
3 deleted
5 edited

Legend:

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

    r3fba9de2 r78211376  
    167167  /* INTERNAL_ERROR_NO_CPU_TABLE = 1, */
    168168  INTERNAL_ERROR_TOO_LITTLE_WORKSPACE = 2,
    169   INTERNAL_ERROR_WORKSPACE_ALLOCATION = 3,
     169  /* INTERNAL_ERROR_WORKSPACE_ALLOCATION = 3, */
    170170  /* INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL = 4, */
    171171  INTERNAL_ERROR_THREAD_EXITTED = 5,
  • cpukit/include/rtems/score/wkspace.h

    r3fba9de2 r78211376  
    103103
    104104/**
    105  * @brief Allocates workspace or fails with fatal error.
    106  *
    107  * This routine returns the address of a block of memory of @a size
    108  * bytes.  If a block of the appropriate size cannot be allocated
    109  * from the workspace, then the internal error handler is invoked.
    110  *
    111  * @param size is the desired number of bytes to allocate
    112  *
    113  * @return The starting address of the allocated memory.
    114  */
    115 void *_Workspace_Allocate_or_fatal_error(
    116   size_t  size
    117 );
    118 
    119 /**
    120105 * @brief Duplicates string with memory from the workspace.
    121106 *
  • cpukit/score/src/wkspace.c

    r3fba9de2 r78211376  
    271271  _Heap_Free( &_Workspace_Area, block );
    272272}
    273 
    274 void *_Workspace_Allocate_or_fatal_error(
    275   size_t      size
    276 )
    277 {
    278   void *memory;
    279 
    280   memory = _Heap_Allocate( &_Workspace_Area, size );
    281   #if defined(DEBUG_WORKSPACE)
    282     printk(
    283       "Workspace_Allocate_or_fatal_error(%d) from %p/%p -> %p\n",
    284       size,
    285       __builtin_return_address( 0 ),
    286       __builtin_return_address( 1 ),
    287       memory
    288     );
    289   #endif
    290 
    291   if ( memory == NULL )
    292     _Internal_error( INTERNAL_ERROR_WORKSPACE_ALLOCATION );
    293 
    294   return memory;
    295 }
  • testsuites/sptests/Makefile.am

    r3fba9de2 r78211376  
    947947spfatal06_SOURCES = spfatal06/init.c
    948948spfatal06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spfatal06) \
    949         $(support_includes)
    950 endif
    951 
    952 if TEST_spfatal08
    953 sp_tests += spfatal08
    954 sp_screens += spfatal08/spfatal08.scn
    955 sp_docs += spfatal08/spfatal08.doc
    956 spfatal08_SOURCES = spfatal08/init.c
    957 spfatal08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spfatal08) \
    958949        $(support_includes)
    959950endif
  • testsuites/sptests/configure.ac

    r3fba9de2 r78211376  
    143143RTEMS_TEST_CHECK([spfatal05])
    144144RTEMS_TEST_CHECK([spfatal06])
    145 RTEMS_TEST_CHECK([spfatal08])
    146145RTEMS_TEST_CHECK([spfatal09])
    147146RTEMS_TEST_CHECK([spfatal10])
Note: See TracChangeset for help on using the changeset viewer.