Skip to content
Snippets Groups Projects
Commit 1ea4fac5 authored by Andre Przywara's avatar Andre Przywara Committed by Tom Rini
Browse files

arm/arm64: Move barrier instructions into separate header


Commit bfb33f0b ("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: default avatarIan Campbell <ijc@hellion.org.uk>
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent 4baca920
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment