diff mbox series

[RFC,1/3] Revert "arm64: debug: remove unused local_dbg_{enable, disable} macros"

Message ID 1555070699-3685-2-git-send-email-wangxiongfeng2@huawei.com (mailing list archive)
State RFC
Headers show
Series Enable kprobe to monitor sdei event handler | expand

Commit Message

Xiongfeng Wang April 12, 2019, 12:04 p.m. UTC
This reverts commit 2572214170fb95370be21915c0397f4b6a27e7e3.

This is a preparation for the following patch. We need to enable debug
in _sdei_handler, so let's revert this patch.

Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
---
 arch/arm64/include/asm/irqflags.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm64/include/asm/irqflags.h b/arch/arm64/include/asm/irqflags.h
index 43d8366..0a54c45 100644
--- a/arch/arm64/include/asm/irqflags.h
+++ b/arch/arm64/include/asm/irqflags.h
@@ -140,5 +140,9 @@  static inline int arch_irqs_disabled_flags(unsigned long flags)
 
 	return res;
 }
+
+#define local_dbg_enable()	asm("msr	daifclr, #8" : : : "memory")
+#define local_dbg_disable()	asm("msr	daifset, #8" : : : "memory")
+
 #endif
 #endif