diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-27 08:55:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-27 08:59:45 +0200 |
commit | 2501c64bb6654f5e4290709e0d83b94bfe51973f (patch) | |
tree | 65446eb1529222d6904b4985adfc206990889b6a /cpukit/include/rtems/score/objectdata.h | |
parent | build: Move RISCV_MAXIMUM_EXTERNAL_INTERRUPTS (diff) | |
download | rtems-2501c64bb6654f5e4290709e0d83b94bfe51973f.tar.bz2 |
score: Fix objects local table initialization
The objects local table must be statically zero-initialized so that
_Objects_Get() and _Objects_Get_no_protection() return NULL if no object is
associated with the identifier.
Update #4678.
Diffstat (limited to 'cpukit/include/rtems/score/objectdata.h')
-rw-r--r-- | cpukit/include/rtems/score/objectdata.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/include/rtems/score/objectdata.h b/cpukit/include/rtems/score/objectdata.h index dc03f23461..ba2cb9c5b2 100644 --- a/cpukit/include/rtems/score/objectdata.h +++ b/cpukit/include/rtems/score/objectdata.h @@ -447,8 +447,7 @@ Objects_Information name##_Information = { \ * multiprocessing (RTEMS_MULTIPROCESSING) is enabled. */ #define OBJECTS_INFORMATION_DEFINE( name, api, cls, type, max, nl, ex ) \ -static RTEMS_SECTION( ".noinit.rtems.content.local_table" ) \ -Objects_Control * \ +static Objects_Control * \ name##_Local_table[ _Objects_Maximum_per_allocation( max ) ]; \ static RTEMS_SECTION( ".noinit.rtems.content.objects" ) \ type \ |