efi: Let architectures decide the flags that should be saved/restored
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:58:49 +0000 (14:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:05:19 +0000 (10:05 +0000)
commit13b210ddf474d9f3368766008a89fe82a6f90b48
treeda5655d9ca58bfbd215634df7ec9064242846a8c
parent85738e05dc38a80921e1e1944e5b835f6668fc30
efi: Let architectures decide the flags that should be saved/restored

Currently, irqflags are saved before calling runtime services and
checked for mismatch on return.

Provide a pair of overridable macros to save and restore (if needed) the
state that need to be preserved on return from a runtime service.
This allows to check for flags that are not necesarly related to
irqflags.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: linux-efi@vger.kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/efi/runtime-wrappers.c
include/linux/efi.h