From cde9070d9970eef1f7ec2360586c802a16230ad8 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:43:50 +0000 Subject: [PATCH] rtl88x2CE_WiFi_linux driver --- kernel/arch/powerpc/xmon/xmon.c | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/kernel/arch/powerpc/xmon/xmon.c b/kernel/arch/powerpc/xmon/xmon.c index d62b8e0..3de2adc 100644 --- a/kernel/arch/powerpc/xmon/xmon.c +++ b/kernel/arch/powerpc/xmon/xmon.c @@ -58,6 +58,7 @@ #ifdef CONFIG_PPC64 #include <asm/hvcall.h> #include <asm/paca.h> +#include <asm/lppaca.h> #endif #include "nonstdio.h" @@ -1383,7 +1384,6 @@ return 1; } -#ifndef CONFIG_PPC_8xx static int find_free_data_bpt(void) { int i; @@ -1395,7 +1395,6 @@ printf("Couldn't find free breakpoint register\n"); return -1; } -#endif static void print_data_bpts(void) { @@ -1435,10 +1434,9 @@ cmd = inchar(); switch (cmd) { -#ifndef CONFIG_PPC_8xx - static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n"; - int mode; - case 'd': /* bd - hardware data breakpoint */ + case 'd': { /* bd - hardware data breakpoint */ + static const char badaddr[] = "Only kernel addresses are permitted for breakpoints\n"; + int mode; if (xmon_is_ro) { printf(xmon_ro_msg); break; @@ -1471,6 +1469,7 @@ force_enable_xmon(); break; + } case 'i': /* bi - hardware instr breakpoint */ if (xmon_is_ro) { @@ -1497,7 +1496,6 @@ force_enable_xmon(); } break; -#endif case 'c': if (!scanhex(&a)) { @@ -3005,7 +3003,7 @@ static void dump_log_buf(void) { - struct kmsg_dumper_iter iter = { .active = 1 }; + struct kmsg_dumper dumper = { .active = 1 }; unsigned char buf[128]; size_t len; @@ -3017,9 +3015,9 @@ catch_memory_errors = 1; sync(); - kmsg_dump_rewind(&iter); + kmsg_dump_rewind_nolock(&dumper); xmon_start_pagination(); - while (kmsg_dump_get_line(&iter, false, buf, sizeof(buf), &len)) { + while (kmsg_dump_get_line_nolock(&dumper, false, buf, sizeof(buf), &len)) { buf[len] = '\0'; printf("%s", buf); } -- Gitblit v1.6.2