]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit320c855d1977d1209b6b369466652dc36761b29b
treeda5655d9ca58bfbd215634df7ec9064242846a8c
parent7b0a9e81168f4c0bfcf4049870fef2b1cd37c847
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