hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/xmon/xmon.c
....@@ -58,6 +58,7 @@
5858 #ifdef CONFIG_PPC64
5959 #include <asm/hvcall.h>
6060 #include <asm/paca.h>
61
+#include <asm/lppaca.h>
6162 #endif
6263
6364 #include "nonstdio.h"
....@@ -1383,7 +1384,6 @@
13831384 return 1;
13841385 }
13851386
1386
-#ifndef CONFIG_PPC_8xx
13871387 static int find_free_data_bpt(void)
13881388 {
13891389 int i;
....@@ -1395,7 +1395,6 @@
13951395 printf("Couldn't find free breakpoint register\n");
13961396 return -1;
13971397 }
1398
-#endif
13991398
14001399 static void print_data_bpts(void)
14011400 {
....@@ -1435,10 +1434,9 @@
14351434 cmd = inchar();
14361435
14371436 switch (cmd) {
1438
-#ifndef CONFIG_PPC_8xx
1439
- static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n";
1440
- int mode;
1441
- case 'd': /* bd - hardware data breakpoint */
1437
+ case 'd': { /* bd - hardware data breakpoint */
1438
+ static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n";
1439
+ int mode;
14421440 if (xmon_is_ro) {
14431441 printf(xmon_ro_msg);
14441442 break;
....@@ -1471,6 +1469,7 @@
14711469
14721470 force_enable_xmon();
14731471 break;
1472
+ }
14741473
14751474 case 'i': /* bi - hardware instr breakpoint */
14761475 if (xmon_is_ro) {
....@@ -1497,7 +1496,6 @@
14971496 force_enable_xmon();
14981497 }
14991498 break;
1500
-#endif
15011499
15021500 case 'c':
15031501 if (!scanhex(&a)) {