mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-13 06:03:31 +00:00
Volatile_object: align the embedded object
The space for the embedded object needs to be natively aligned to avoid alignment errors on ARM. Fixes #1149.
This commit is contained in:
parent
afbe3d8674
commit
927af36c58
@ -43,7 +43,7 @@ class Genode::Volatile_object
|
||||
/**
|
||||
* Static reservation of memory for the embedded object
|
||||
*/
|
||||
char _space[sizeof(MT)];
|
||||
char _space[sizeof(MT)] __attribute__((aligned(sizeof(addr_t))));
|
||||
|
||||
/**
|
||||
* True if the volatile object contains a constructed object
|
||||
|
Loading…
x
Reference in New Issue
Block a user