Tiny cleanup for the for_x86 branch.

Signed-off-by: Jan Kiszka <[EMAIL PROTECTED]>

---
 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;

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to