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:
Sebastian Huber
2016-11-23 07:52:42 +01:00
parent 3142727602
commit a550b3f35a
@@ -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.
*