mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
score: Allow linker garbage collection
Place the object control blocks in dedicated sections to allow a linker garbage collection. Update #4678.
This commit is contained in:
@@ -449,7 +449,7 @@ Objects_Information name##_Information = { \
|
||||
#define OBJECTS_INFORMATION_DEFINE( name, api, cls, type, max, nl, ex ) \
|
||||
static Objects_Control * \
|
||||
name##_Local_table[ _Objects_Maximum_per_allocation( max ) ]; \
|
||||
static RTEMS_SECTION( ".noinit.rtems.content.objects" ) \
|
||||
static RTEMS_SECTION( ".noinit.rtems.content.objects." #name ) \
|
||||
type \
|
||||
name##_Objects[ _Objects_Maximum_per_allocation( max ) ]; \
|
||||
Objects_Information name##_Information = { \
|
||||
|
||||
@@ -1151,10 +1151,10 @@ Objects_Control *_Thread_Allocate_unlimited( Objects_Information *information );
|
||||
#define THREAD_INFORMATION_DEFINE( name, api, cls, max ) \
|
||||
static Objects_Control * \
|
||||
name##_Local_table[ _Objects_Maximum_per_allocation( max ) ]; \
|
||||
static RTEMS_SECTION( ".noinit.rtems.content.objects" ) \
|
||||
static RTEMS_SECTION( ".noinit.rtems.content.objects." #name ) \
|
||||
Thread_Configured_control \
|
||||
name##_Objects[ _Objects_Maximum_per_allocation( max ) ]; \
|
||||
static RTEMS_SECTION( ".noinit.rtems.content.objects" ) \
|
||||
static RTEMS_SECTION( ".noinit.rtems.content.objects." #name ) \
|
||||
Thread_queue_Configured_heads \
|
||||
name##_Heads[ _Objects_Maximum_per_allocation( max ) ]; \
|
||||
Thread_Information name##_Information = { \
|
||||
|
||||
Reference in New Issue
Block a user