From b5af10a1f2c231a7c3da49252a1ce96764f1dea4 Mon Sep 17 00:00:00 2001 From: Park Bumgyu Date: Tue, 10 May 2016 15:49:27 +0900 Subject: [PATCH] Revert "arm64: Remove unused macros from assembler.h" This reverts commit d3127afa712321a2b297cfee358be2cb223f933c. Change-Id: I75e0aafbf1e4f440bc51ca20a762d1834f886781 Signed-off-by: Park Bumgyu --- arch/arm64/include/asm/assembler.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. */ -- 2.20.1