aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon/xmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/xmon/xmon.c')
-rw-r--r--arch/powerpc/xmon/xmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 465b75c5647e..22612ed5379c 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -1013,7 +1013,7 @@ static long check_bp_loc(unsigned long addr)
1013 unsigned int instr; 1013 unsigned int instr;
1014 1014
1015 addr &= ~3; 1015 addr &= ~3;
1016 if (addr < KERNELBASE) { 1016 if (!is_kernel_addr(addr)) {
1017 printf("Breakpoints may only be placed at kernel addresses\n"); 1017 printf("Breakpoints may only be placed at kernel addresses\n");
1018 return 0; 1018 return 0;
1019 } 1019 }
@@ -1064,7 +1064,7 @@ bpt_cmds(void)
1064 dabr.address = 0; 1064 dabr.address = 0;
1065 dabr.enabled = 0; 1065 dabr.enabled = 0;
1066 if (scanhex(&dabr.address)) { 1066 if (scanhex(&dabr.address)) {
1067 if (dabr.address < KERNELBASE) { 1067 if (!is_kernel_addr(dabr.address)) {
1068 printf(badaddr); 1068 printf(badaddr);
1069 break; 1069 break;
1070 } 1070 }