mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 01:04:26 +08:00
score: Force Per_CPU_Control::executing alignment
This fixes the CPU ports with relaxed alignment restrictions, e.g. type alignment is less than the type size. Close #2822. Close #2823.
This commit is contained in:
@@ -334,6 +334,13 @@ typedef struct Per_CPU_Control {
|
||||
*/
|
||||
volatile bool dispatch_necessary;
|
||||
|
||||
/*
|
||||
* Ensure that the executing member is at least 4-byte aligned, see
|
||||
* PER_CPU_OFFSET_EXECUTING. This is necessary on CPU ports with relaxed
|
||||
* alignment restrictions, e.g. type alignment is less than the type size.
|
||||
*/
|
||||
bool reserved_for_executing_alignment[ 3 ];
|
||||
|
||||
/**
|
||||
* @brief This is the thread executing on this processor.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user