[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240125090016.536043-1-chentao@kylinos.cn>
Date: Thu, 25 Jan 2024 17:00:16 +0800
From: Kunwu Chan <chentao@...inos.cn>
To: oleg@...hat.com,
linux@...linux.org.uk
Cc: linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Kunwu Chan <chentao@...inos.cn>
Subject: [PATCH] ARM: ptrace: Code cleanup
This part was commented in about 19 years before.
If there are no plans to enable this part code in the future,
we can remove this dead code.
Signed-off-by: Kunwu Chan <chentao@...inos.cn>
---
arch/arm/kernel/ptrace.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index c421a899fc84..71c0b2233f56 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -37,13 +37,6 @@
* in exit.c or in signal.c.
*/
-#if 0
-/*
- * Breakpoint SWI instruction: SWI &9F0001
- */
-#define BREAKINST_ARM 0xef9f0001
-#define BREAKINST_THUMB 0xdf00 /* fill this in later */
-#else
/*
* New breakpoints - use an undefined instruction. The ARM architecture
* reference manual guarantees that the following instruction space
@@ -54,7 +47,6 @@
*/
#define BREAKINST_ARM 0xe7f001f0
#define BREAKINST_THUMB 0xde01
-#endif
struct pt_regs_offset {
const char *name;
--
2.39.2
Powered by blists - more mailing lists