mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
score: Rename _Stack_Free_nothing()
Rename _Stack_Free_nothing() in _Objects_Free_nothing() to make it reusable for the message queue buffers. Update #4007.
This commit is contained in:
@@ -867,6 +867,7 @@ librtemscpu_a_SOURCES += score/src/objectallocateunlimited.c
|
||||
librtemscpu_a_SOURCES += score/src/objectclose.c
|
||||
librtemscpu_a_SOURCES += score/src/objectextendinformation.c
|
||||
librtemscpu_a_SOURCES += score/src/objectfree.c
|
||||
librtemscpu_a_SOURCES += score/src/objectfreenothing.c
|
||||
librtemscpu_a_SOURCES += score/src/objectfreestatic.c
|
||||
librtemscpu_a_SOURCES += score/src/objectgetnext.c
|
||||
librtemscpu_a_SOURCES += score/src/objectinitializeinformation.c
|
||||
@@ -931,7 +932,6 @@ librtemscpu_a_SOURCES += score/src/schedulercbsreleasejob.c
|
||||
librtemscpu_a_SOURCES += score/src/schedulercbsunblock.c
|
||||
librtemscpu_a_SOURCES += score/src/stackallocator.c
|
||||
librtemscpu_a_SOURCES += score/src/stackallocatorfree.c
|
||||
librtemscpu_a_SOURCES += score/src/stackallocatorfreenothing.c
|
||||
librtemscpu_a_SOURCES += score/src/stackallocatorinit.c
|
||||
librtemscpu_a_SOURCES += score/src/pheapallocate.c
|
||||
librtemscpu_a_SOURCES += score/src/pheapextend.c
|
||||
|
||||
@@ -954,6 +954,13 @@ RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Allocate_with_extend(
|
||||
return the_object;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief This function does nothing.
|
||||
*
|
||||
* @param ptr is not used.
|
||||
*/
|
||||
void _Objects_Free_nothing( void *ptr );
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -194,13 +194,6 @@ void *_Stack_Allocate( size_t stack_size );
|
||||
*/
|
||||
void _Stack_Free( void *stack_area );
|
||||
|
||||
/**
|
||||
* @brief This function does nothing.
|
||||
*
|
||||
* @param stack_area is not used.
|
||||
*/
|
||||
void _Stack_Free_nothing( void *stack_area );
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -144,7 +144,7 @@ typedef struct {
|
||||
/**
|
||||
* @brief This member contains the handler to free the stack.
|
||||
*
|
||||
* It shall not be NULL. Use _Stack_Free_nothing() if nothing is to free.
|
||||
* It shall not be NULL. Use _Objects_Free_nothing() if nothing is to free.
|
||||
*/
|
||||
void ( *stack_free )( void * );
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ int pthread_create(
|
||||
config.stack_free = _Stack_Free;
|
||||
config.stack_area = _Stack_Allocate( config.stack_size );
|
||||
} else {
|
||||
config.stack_free = _Stack_Free_nothing;
|
||||
config.stack_free = _Objects_Free_nothing;
|
||||
}
|
||||
|
||||
if ( config.stack_area == NULL ) {
|
||||
|
||||
@@ -92,7 +92,7 @@ static rtems_status_code _RTEMS_tasks_Prepare_user_stack(
|
||||
if ( config->storage_free != NULL ) {
|
||||
thread_config->stack_free = config->storage_free;
|
||||
} else {
|
||||
thread_config->stack_free = _Stack_Free_nothing;
|
||||
thread_config->stack_free = _Objects_Free_nothing;
|
||||
}
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @ingroup RTEMSScoreStack
|
||||
* @ingroup RTEMSScoreObject
|
||||
*
|
||||
* @brief This source file contains the implementation of
|
||||
* _Stack_Free_nothing().
|
||||
* _Objects_Free_nothing().
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -38,9 +38,9 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/score/stackimpl.h>
|
||||
#include <rtems/score/objectimpl.h>
|
||||
|
||||
void _Stack_Free_nothing( void *stack_area )
|
||||
void _Objects_Free_nothing( void *ptr )
|
||||
{
|
||||
(void) stack_area;
|
||||
(void) ptr;
|
||||
}
|
||||
@@ -1433,6 +1433,7 @@ source:
|
||||
- cpukit/score/src/objectclose.c
|
||||
- cpukit/score/src/objectextendinformation.c
|
||||
- cpukit/score/src/objectfree.c
|
||||
- cpukit/score/src/objectfreenothing.c
|
||||
- cpukit/score/src/objectfreestatic.c
|
||||
- cpukit/score/src/objectgetinfo.c
|
||||
- cpukit/score/src/objectgetinfoid.c
|
||||
@@ -1518,7 +1519,6 @@ source:
|
||||
- cpukit/score/src/smpbarrierwait.c
|
||||
- cpukit/score/src/stackallocator.c
|
||||
- cpukit/score/src/stackallocatorfree.c
|
||||
- cpukit/score/src/stackallocatorfreenothing.c
|
||||
- cpukit/score/src/stackallocatorinit.c
|
||||
- cpukit/score/src/thread.c
|
||||
- cpukit/score/src/threadallocateunlimited.c
|
||||
|
||||
Reference in New Issue
Block a user