Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753482AbcD1Kp6 (ORCPT ); Thu, 28 Apr 2016 06:45:58 -0400 Received: from terminus.zytor.com ([198.137.202.10]:48440 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752376AbcD1Kp4 (ORCPT ); Thu, 28 Apr 2016 06:45:56 -0400 Date: Thu, 28 Apr 2016 03:44:58 -0700 From: tip-bot for Mark Rutland Message-ID: Cc: leif.lindholm@linaro.org, bp@alien8.de, linux-kernel@vger.kernel.org, matt@codeblueprint.co.uk, peterz@infradead.org, mark.rutland@arm.com, tglx@linutronix.de, linux@arm.linux.org.uk, ard.biesheuvel@linaro.org, dan.j.williams@intel.com, mingo@kernel.org, hpa@zytor.com, will.deacon@arm.com, catalin.marinas@arm.com Reply-To: dan.j.williams@intel.com, mingo@kernel.org, will.deacon@arm.com, catalin.marinas@arm.com, hpa@zytor.com, mark.rutland@arm.com, peterz@infradead.org, matt@codeblueprint.co.uk, linux-kernel@vger.kernel.org, leif.lindholm@linaro.org, bp@alien8.de, linux@arm.linux.org.uk, tglx@linutronix.de, ard.biesheuvel@linaro.org In-Reply-To: <1461614832-17633-38-git-send-email-matt@codeblueprint.co.uk> References: <1461614832-17633-38-git-send-email-matt@codeblueprint.co.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] arm64/efi: Enable runtime call flag checking Git-Commit-ID: ee6cab5d4aba1df12e0386d22c5a1c4e71d34b31 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1919 Lines: 53 Commit-ID: ee6cab5d4aba1df12e0386d22c5a1c4e71d34b31 Gitweb: http://git.kernel.org/tip/ee6cab5d4aba1df12e0386d22c5a1c4e71d34b31 Author: Mark Rutland AuthorDate: Mon, 25 Apr 2016 21:07:09 +0100 Committer: Ingo Molnar CommitDate: Thu, 28 Apr 2016 11:34:11 +0200 arm64/efi: Enable runtime call flag checking 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 Signed-off-by: Matt Fleming Acked-by: Will Deacon Cc: Ard Biesheuvel Cc: Borislav Petkov Cc: Catalin Marinas Cc: Dan Williams Cc: Leif Lindholm Cc: Peter Zijlstra Cc: Russell King Cc: Thomas Gleixner Cc: linux-arm-kernel@lists.infradead.org Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1461614832-17633-38-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar --- 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 cfd4ae2..622db3c 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 */ /*