[Kgdb-bugreport] [PATCH] for_x86: kill DEBUG_ZERO
Status: Beta
Brought to you by:
jwessel
From: Jan K. <jan...@si...> - 2008-01-18 12:35:30
|
Tiny cleanup for the for_x86 branch. Signed-off-by: Jan Kiszka <jan...@si...> --- arch/x86/kernel/kgdb.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) Index: b/arch/x86/kernel/kgdb.c =================================================================== --- a/arch/x86/kernel/kgdb.c +++ b/arch/x86/kernel/kgdb.c @@ -48,12 +48,6 @@ #include <asm/mach_apic.h> #include <asm/debugreg.h> -#ifdef CONFIG_X86_32 -#define DEBUG_ZERO 0 -#else -#define DEBUG_ZERO 0UL -#endif - /* Put the error code here just in case the user cares. */ static int gdb_x86errcode; /* Likewise, the vector number here (since GDB only gets the signal @@ -272,7 +266,7 @@ static int kgdb_set_hw_break(unsigned lo void kgdb_disable_hw_debug(struct pt_regs *regs) { /* Disable hardware debugging while we are in kgdb */ - set_debugreg(DEBUG_ZERO, 7); + set_debugreg(0UL, 7); } void kgdb_post_master_code(struct pt_regs *regs, int e_vector, int err_code) @@ -334,7 +328,7 @@ int kgdb_arch_handle_exception(int e_vec } } } - set_debugreg(DEBUG_ZERO, 6); + set_debugreg(0UL, 6); kgdb_correct_hw_break(); return 0; |