[RFC PATCH 7/7] [DO NOT MERGE] x86/kexec: enable DEBUG
David Woodhouse
dwmw2 at infradead.org
Sat Nov 2 22:35:32 PDT 2024
From: David Woodhouse <dwmw at amazon.co.uk>
Signed-off-by: David Woodhouse <dwmw at amazon.co.uk>
---
arch/x86/kernel/relocate_kernel_64.S | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S
index 1c18cffe5229..bba37db6d437 100644
--- a/arch/x86/kernel/relocate_kernel_64.S
+++ b/arch/x86/kernel/relocate_kernel_64.S
@@ -14,6 +14,8 @@
#include <asm/nospec-branch.h>
#include <asm/unwind_hints.h>
+#define DEBUG
+
/*
* Must be relocatable PIC code callable as a C function, in particular
* there must be a plain RET and not jump to return thunk.
@@ -195,6 +197,8 @@ SYM_CODE_START_LOCAL_NOALIGN(identity_mapped)
pushw $0xff
lidt (%rsp)
addq $10, %rsp
+
+ int3
#endif /* DEBUG */
/*
--
2.44.0
More information about the kexec
mailing list