]> Pileus Git - ~andy/linux/blobdiff - arch/arc/kernel/kgdb.c
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
[~andy/linux] / arch / arc / kernel / kgdb.c
index 52bdc83c1495b5bf31a685998f7a5d7b9a1bd15e..a7698fb148180bfb17f9c5f0c7cae1f229bf216e 100644 (file)
@@ -169,7 +169,7 @@ int kgdb_arch_init(void)
        return 0;
 }
 
-void kgdb_trap(struct pt_regs *regs, int param)
+void kgdb_trap(struct pt_regs *regs)
 {
        /* trap_s 3 is used for breakpoints that overwrite existing
         * instructions, while trap_s 4 is used for compiled breakpoints.
@@ -181,7 +181,7 @@ void kgdb_trap(struct pt_regs *regs, int param)
         * with trap_s 4 (compiled) breakpoints, continuation needs to
         * start after the breakpoint.
         */
-       if (param == 3)
+       if (regs->ecr_param == 3)
                instruction_pointer(regs) -= BREAK_INSTR_SIZE;
 
        kgdb_handle_exception(1, SIGTRAP, 0, regs);