Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965121AbcDYUIl (ORCPT ); Mon, 25 Apr 2016 16:08:41 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36474 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933368AbcDYUI2 (ORCPT ); Mon, 25 Apr 2016 16:08:28 -0400 From: Matt Fleming To: Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" Cc: Mark Rutland , Ard Biesheuvel , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, Matt Fleming , Catalin Marinas , Dan Williams , Leif Lindholm , Russell King , Will Deacon Subject: [PATCH 37/40] arm64/efi: Enable runtime call flag checking Date: Mon, 25 Apr 2016 21:07:09 +0100 Message-Id: <1461614832-17633-38-git-send-email-matt@codeblueprint.co.uk> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1461614832-17633-1-git-send-email-matt@codeblueprint.co.uk> References: <1461614832-17633-1-git-send-email-matt@codeblueprint.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1447 Lines: 45 From: Mark Rutland Define ARCH_EFI_IRQ_FLAGS_MASK for arm64, which will enable the generic runtime wrapper code to detect when firmware erroneously modifies flags over a runtime services function call. Signed-off-by: Mark Rutland Acked-by: Will Deacon Cc: Ard Biesheuvel Cc: Catalin Marinas Cc: Leif Lindholm Cc: linux-arm-kernel@lists.infradead.org Cc: linux-efi@vger.kernel.org Cc: "H. Peter Anvin" Cc: Russell King Cc: Thomas Gleixner Cc: Dan Williams Signed-off-by: Matt Fleming --- arch/arm64/include/asm/efi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h index cfd4ae2e46c0..622db3c6474e 100644 --- a/arch/arm64/include/asm/efi.h +++ b/arch/arm64/include/asm/efi.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #ifdef CONFIG_EFI @@ -35,6 +36,8 @@ int efi_create_mapping(struct mm_struct *mm, efi_memory_desc_t *md); kernel_neon_end(); \ }) +#define ARCH_EFI_IRQ_FLAGS_MASK (PSR_D_BIT | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT) + /* arch specific definitions used by the stub code */ /* -- 2.7.3