mirror of
https://github.com/deadw00d/AROS.git
synced 2025-11-21 10:07:53 +00:00
Remove the increased alignment requirement
This tree follows standard ABI alignment rules as spinlock_t has the 128-byte aligment removed and is removed from SignalSemaphore as well. Object and MUI_AreaData each contain pointer so they are 8 byte aligned and their size is a multiply of 8 on 64-bit.
This commit is contained in:
@ -8,13 +8,11 @@
|
||||
Alignment rules for class data
|
||||
*/
|
||||
|
||||
#include <aros/config.h>
|
||||
|
||||
#ifndef AROS_CPU_H
|
||||
#include <aros/cpu.h>
|
||||
#endif
|
||||
|
||||
#ifdef __AROSPLATFORM_SMP__
|
||||
#if 0
|
||||
// Instance data _must_ be aligned on SMP capable platforms, incase spinlocks are used.
|
||||
#ifdef AROS_WORSTALIGN
|
||||
#define CLASS_INSTANCE_ALIGN __attribute__((aligned(AROS_WORSTALIGN)))
|
||||
|
||||
@ -86,7 +86,7 @@
|
||||
/*
|
||||
* Make sure class instance data is adequately aligned on SMP capable platforms
|
||||
*/
|
||||
#ifdef __AROSPLATFORM_SMP__
|
||||
#if 0
|
||||
#ifndef CLASS_ALIGN_UP
|
||||
#define CLASS_ALIGN_UP(offset, align) (((offset) + ((align) - 1)) & ~((align) - 1))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user