base: natural default align in unmanaged singleton

I have no idea where the previous default alignment = 2 in the unsynchronized
singleton came from but as at least the Arndale IC-driver in base-hw needs an
alignment of 4 = address width, unmanaged singleton now uses sizeof(addr_t)
as default alignment.

ref #989
This commit is contained in:
Martin Stein 2013-12-10 11:26:44 +01:00 committed by Norman Feske
parent 77130a9404
commit 4009619206

View File

@ -51,7 +51,7 @@ inline void * operator new(Genode::size_t, void * p) { return p; }
*
* \return object pointer
*/
template <typename T, int ALIGNMENT = 2, typename... ARGS>
template <typename T, int ALIGNMENT = sizeof(Genode::addr_t), typename... ARGS>
static inline T * unmanaged_singleton(ARGS... args)
{
/*