From 3b97fbd91e532fc5808babfa0960c81941f34696 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Sun, 20 Jun 2010 12:23:57 +0000 Subject: Add a STORAGE_ALIGN_ATTR macro, similar to CACHEALIGN_ATTR, for consistency git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26982 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/system.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware') diff --git a/firmware/export/system.h b/firmware/export/system.h index db4b3650ee..205e4bc058 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -336,6 +336,7 @@ static inline void cpucache_flush(void) #endif /* PROC_NEEDS_CACHEALIGN */ #ifdef STORAGE_WANTS_ALIGN +#define STORAGE_ALIGN_ATTR __attribute__((aligned(CACHEALIGN_SIZE))) #define STORAGE_ALIGN_DOWN(x) \ ((typeof (x))ALIGN_DOWN_P2((uintptr_t)(x), CACHEALIGN_BITS)) /* Pad a size so the buffer can be aligned later */ -- cgit v1.2.3