Skip to content
Commit b18a3c18 authored by Peter Hoyes's avatar Peter Hoyes Committed by Tom Rini
Browse files

arm: Move sev() and wfe() definitions to common Arm header file



The sev() and wfe() asm macros are currently defined only for
mach-exynos. As these are common Arm instructions, move them to the
common asm/system.h header file, for both Armv7 and Armv8, so they
can be used by other machines.

wfe may theoretically trigger a context switch if an interrupt occurs
so add a memory barrier to this call.

Signed-off-by: default avatarPeter Hoyes <Peter.Hoyes@arm.com>
Reviewed-by: default avatarAndre <Przywara&lt;andre.przywara@arm.com>
parent e0112bc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment