diff options
Diffstat (limited to 'arch/powerpc/xmon/xmon.c')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index c45a6ad5f3b7..22612ed5379c 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c | |||
@@ -450,7 +450,6 @@ int xmon_core(struct pt_regs *regs, int fromipi) | |||
450 | leave: | 450 | leave: |
451 | cpu_clear(cpu, cpus_in_xmon); | 451 | cpu_clear(cpu, cpus_in_xmon); |
452 | xmon_fault_jmp[cpu] = NULL; | 452 | xmon_fault_jmp[cpu] = NULL; |
453 | |||
454 | #else | 453 | #else |
455 | /* UP is simple... */ | 454 | /* UP is simple... */ |
456 | if (in_xmon) { | 455 | if (in_xmon) { |
@@ -805,7 +804,10 @@ cmds(struct pt_regs *excp) | |||
805 | break; | 804 | break; |
806 | case 'x': | 805 | case 'x': |
807 | case 'X': | 806 | case 'X': |
807 | return cmd; | ||
808 | case EOF: | 808 | case EOF: |
809 | printf(" <no input ...>\n"); | ||
810 | mdelay(2000); | ||
809 | return cmd; | 811 | return cmd; |
810 | case '?': | 812 | case '?': |
811 | printf(help_string); | 813 | printf(help_string); |
@@ -1011,7 +1013,7 @@ static long check_bp_loc(unsigned long addr) | |||
1011 | unsigned int instr; | 1013 | unsigned int instr; |
1012 | 1014 | ||
1013 | addr &= ~3; | 1015 | addr &= ~3; |
1014 | if (addr < KERNELBASE) { | 1016 | if (!is_kernel_addr(addr)) { |
1015 | printf("Breakpoints may only be placed at kernel addresses\n"); | 1017 | printf("Breakpoints may only be placed at kernel addresses\n"); |
1016 | return 0; | 1018 | return 0; |
1017 | } | 1019 | } |
@@ -1062,7 +1064,7 @@ bpt_cmds(void) | |||
1062 | dabr.address = 0; | 1064 | dabr.address = 0; |
1063 | dabr.enabled = 0; | 1065 | dabr.enabled = 0; |
1064 | if (scanhex(&dabr.address)) { | 1066 | if (scanhex(&dabr.address)) { |
1065 | if (dabr.address < KERNELBASE) { | 1067 | if (!is_kernel_addr(dabr.address)) { |
1066 | printf(badaddr); | 1068 | printf(badaddr); |
1067 | break; | 1069 | break; |
1068 | } | 1070 | } |