Revert "arm64: Remove unused macros from assembler.h"
authorPark Bumgyu <bumgyu.park@samsung.com>
Tue, 10 May 2016 06:49:27 +0000 (15:49 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:25 +0000 (17:30 +0900)
This reverts commit d3127afa712321a2b297cfee358be2cb223f933c.

Change-Id: I75e0aafbf1e4f440bc51ca20a762d1834f886781
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
arch/arm64/include/asm/assembler.h

index 463619dcadd4a9ac9c4aa2b984764a4aa0817dc8..bc2cc2a21bc5671041bb4393947c9ba6237e22e7 100644 (file)
        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.
  */