linux: compiler-gcc: add __cacheline_aligned
Change-Id: I0cc437885aa3a1e6637c1aeee9df718ac61fa914 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
5e941216fb
commit
cc3d674144
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue