linux: compiler-gcc: add __cacheline_aligned

Change-Id: I0cc437885aa3a1e6637c1aeee9df718ac61fa914
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-11-20 16:24:36 +08:00 committed by Jianhong Chen
parent 5e941216fb
commit cc3d674144
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@
#define __packed __attribute__((packed)) #define __packed __attribute__((packed))
#define __weak __attribute__((weak)) #define __weak __attribute__((weak))
#define __alias(symbol) __attribute__((alias(#symbol))) #define __alias(symbol) __attribute__((alias(#symbol)))
#define __cacheline_aligned __attribute__((__aligned__(CONFIG_SYS_CACHELINE_SIZE)))
/* /*
* it doesn't make sense on ARM (currently the only user of __naked) * it doesn't make sense on ARM (currently the only user of __naked)