diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/kgdb_stub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/kernel/kgdb_stub.c b/arch/sh/kernel/kgdb_stub.c index 27f64b92aff0..2fdc700dfd6e 100644 --- a/arch/sh/kernel/kgdb_stub.c +++ b/arch/sh/kernel/kgdb_stub.c | |||
@@ -609,7 +609,7 @@ static short *get_step_address(void) | |||
609 | else | 609 | else |
610 | addr = trap_registers.pc + 2; | 610 | addr = trap_registers.pc + 2; |
611 | 611 | ||
612 | kgdb_flush_icache_range(addr, addr + 2); | 612 | flush_icache_range(addr, addr + 2); |
613 | return (short *) addr; | 613 | return (short *) addr; |
614 | } | 614 | } |
615 | 615 | ||
@@ -632,7 +632,7 @@ static void do_single_step(void) | |||
632 | *addr = STEP_OPCODE; | 632 | *addr = STEP_OPCODE; |
633 | 633 | ||
634 | /* Flush and return */ | 634 | /* Flush and return */ |
635 | kgdb_flush_icache_range((long) addr, (long) addr + 2); | 635 | flush_icache_range((long) addr, (long) addr + 2); |
636 | } | 636 | } |
637 | 637 | ||
638 | /* Undo a single step */ | 638 | /* Undo a single step */ |
@@ -642,7 +642,7 @@ static void undo_single_step(void) | |||
642 | /* Use stepped_address in case we stopped elsewhere */ | 642 | /* Use stepped_address in case we stopped elsewhere */ |
643 | if (stepped_opcode != 0) { | 643 | if (stepped_opcode != 0) { |
644 | *(short*)stepped_address = stepped_opcode; | 644 | *(short*)stepped_address = stepped_opcode; |
645 | kgdb_flush_icache_range(stepped_address, stepped_address + 2); | 645 | flush_icache_range(stepped_address, stepped_address + 2); |
646 | } | 646 | } |
647 | stepped_opcode = 0; | 647 | stepped_opcode = 0; |
648 | } | 648 | } |
@@ -728,7 +728,7 @@ static void write_mem_msg(int binary) | |||
728 | ebin_to_mem(ptr, (char*)addr, length); | 728 | ebin_to_mem(ptr, (char*)addr, length); |
729 | else | 729 | else |
730 | hex_to_mem(ptr, (char*)addr, length); | 730 | hex_to_mem(ptr, (char*)addr, length); |
731 | kgdb_flush_icache_range(addr, addr + length); | 731 | flush_icache_range(addr, addr + length); |
732 | ptr = 0; | 732 | ptr = 0; |
733 | send_ok_msg(); | 733 | send_ok_msg(); |
734 | } | 734 | } |