diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-05-12 12:14:41 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-12 11:13:03 -0400 |
commit | 1ea4fac5a34604e67504ee6537bb01e809528cd4 (patch) | |
tree | a00ff7f5f48cc255bdea84ba7a4181a0feb1b622 /include/altera.h | |
parent | 4baca92001bff3c32a05001a7dc58996623e3ef8 (diff) |
arm/arm64: Move barrier instructions into separate header
Commit bfb33f0bc45b ("sunxi: mctl_mem_matches: Add missing memory
barrier") broke compilation for the Pine64, as dram_helper.c now
includes <asm/armv7.h>, which does not compile on arm64.
Fix this by moving all barrier instructions into a separate header
file, which can easily be shared between arm and arm64.
Also extend the inline assembly to take the "sy" argument, which is
optional for ARMv7, but mandatory for v8.
This fixes compilation for 64-bit sunxi boards (Pine64).
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'include/altera.h')
0 files changed, 0 insertions, 0 deletions