From: Park Bumgyu Date: Tue, 10 May 2016 06:49:27 +0000 (+0900) Subject: Revert "arm64: Remove unused macros from assembler.h" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5af10a1f2c231a7c3da49252a1ce96764f1dea4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "arm64: Remove unused macros from assembler.h" This reverts commit d3127afa712321a2b297cfee358be2cb223f933c. Change-Id: I75e0aafbf1e4f440bc51ca20a762d1834f886781 Signed-off-by: Park Bumgyu --- diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index 463619dcadd4..bc2cc2a21bc5 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -50,6 +50,18 @@ msr daif, \flags .endm +/* + * Save/disable and restore interrupts. + */ + .macro save_and_disable_irqs, olddaif + mrs \olddaif, daif + disable_irq + .endm + + .macro restore_irqs, olddaif + msr daif, \olddaif + .endm + /* * Enable and disable debug exceptions. */