From 1c055e55a242a33e574e48be530e06770a210dcd Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 19 Feb 2024 03:26:26 +0000 Subject: [PATCH] add r8169 read mac form eeprom --- kernel/drivers/tty/serial/kgdb_nmi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/drivers/tty/serial/kgdb_nmi.c b/kernel/drivers/tty/serial/kgdb_nmi.c index 4029272..6004c0c 100644 --- a/kernel/drivers/tty/serial/kgdb_nmi.c +++ b/kernel/drivers/tty/serial/kgdb_nmi.c @@ -50,7 +50,7 @@ * I/O utilities that messages sent to the console will automatically * be displayed on the dbg_io. */ - dbg_io_ops->is_console = true; + dbg_io_ops->cons = co; return 0; } @@ -118,7 +118,7 @@ int c = -1; const char *magic = kgdb_nmi_magic; size_t m = strlen(magic); - bool printch = 0; + bool printch = false; c = dbg_io_ops->read_char(); if (c == NO_POLL_CHAR) @@ -130,7 +130,7 @@ n = (n + 1) % m; if (!n) return 1; - printch = 1; + printch = true; } else { n = 0; } -- Gitblit v1.6.2