Loading arch/powerpc/xmon/xmon.c +5 −2 Original line number Original line Diff line number Diff line Loading @@ -53,6 +53,7 @@ #include <asm/xive.h> #include <asm/xive.h> #include <asm/opal.h> #include <asm/opal.h> #include <asm/firmware.h> #include <asm/firmware.h> #include <asm/code-patching.h> #ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64 #include <asm/hvcall.h> #include <asm/hvcall.h> Loading Loading @@ -837,7 +838,8 @@ static void insert_bpts(void) store_inst(&bp->instr[0]); store_inst(&bp->instr[0]); if (bp->enabled & BP_CIABR) if (bp->enabled & BP_CIABR) continue; continue; if (mwrite(bp->address, &bpinstr, 4) != 4) { if (patch_instruction((unsigned int *)bp->address, bpinstr) != 0) { printf("Couldn't write instruction at %lx, " printf("Couldn't write instruction at %lx, " "disabling breakpoint there\n", bp->address); "disabling breakpoint there\n", bp->address); bp->enabled &= ~BP_TRAP; bp->enabled &= ~BP_TRAP; Loading Loading @@ -874,7 +876,8 @@ static void remove_bpts(void) continue; continue; if (mread(bp->address, &instr, 4) == 4 if (mread(bp->address, &instr, 4) == 4 && instr == bpinstr && instr == bpinstr && mwrite(bp->address, &bp->instr, 4) != 4) && patch_instruction( (unsigned int *)bp->address, bp->instr[0]) != 0) printf("Couldn't remove breakpoint at %lx\n", printf("Couldn't remove breakpoint at %lx\n", bp->address); bp->address); else else Loading Loading
arch/powerpc/xmon/xmon.c +5 −2 Original line number Original line Diff line number Diff line Loading @@ -53,6 +53,7 @@ #include <asm/xive.h> #include <asm/xive.h> #include <asm/opal.h> #include <asm/opal.h> #include <asm/firmware.h> #include <asm/firmware.h> #include <asm/code-patching.h> #ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64 #include <asm/hvcall.h> #include <asm/hvcall.h> Loading Loading @@ -837,7 +838,8 @@ static void insert_bpts(void) store_inst(&bp->instr[0]); store_inst(&bp->instr[0]); if (bp->enabled & BP_CIABR) if (bp->enabled & BP_CIABR) continue; continue; if (mwrite(bp->address, &bpinstr, 4) != 4) { if (patch_instruction((unsigned int *)bp->address, bpinstr) != 0) { printf("Couldn't write instruction at %lx, " printf("Couldn't write instruction at %lx, " "disabling breakpoint there\n", bp->address); "disabling breakpoint there\n", bp->address); bp->enabled &= ~BP_TRAP; bp->enabled &= ~BP_TRAP; Loading Loading @@ -874,7 +876,8 @@ static void remove_bpts(void) continue; continue; if (mread(bp->address, &instr, 4) == 4 if (mread(bp->address, &instr, 4) == 4 && instr == bpinstr && instr == bpinstr && mwrite(bp->address, &bp->instr, 4) != 4) && patch_instruction( (unsigned int *)bp->address, bp->instr[0]) != 0) printf("Couldn't remove breakpoint at %lx\n", printf("Couldn't remove breakpoint at %lx\n", bp->address); bp->address); else else Loading