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:
Christian Prochaska 2014-05-19 12:12:28 +02:00 committed by Norman Feske
parent afbe3d8674
commit 927af36c58
1 changed files with 1 additions and 1 deletions

View File

@ -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