From 5cb80fe1822bb0f49a4a1754424ebdd77503e284 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Thu, 4 Dec 2008 17:42:31 -0500 Subject: [PATCH 1/1] Don't write to the text console if we don't need to. --- aseg-paging/main.c | 4 +++- aseg-paging/smi.c | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/aseg-paging/main.c b/aseg-paging/main.c index 7b5c093..ddde1b9 100644 --- a/aseg-paging/main.c +++ b/aseg-paging/main.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "../net/net.h" #include "vga-overlay.h" #include "../aseg/packet.h" @@ -114,7 +115,8 @@ void timer_handler(smi_event_t ev) outb(0x80, (ticks++) & 0xFF); - outlog(); + if (!fb || fb->curmode.text) + outlog(); } void kbc_handler(smi_event_t ev) diff --git a/aseg-paging/smi.c b/aseg-paging/smi.c index 031797d..7f75a85 100644 --- a/aseg-paging/smi.c +++ b/aseg-paging/smi.c @@ -28,8 +28,11 @@ void smi_entry(void) fb->getvmode(fb->priv); counter++; - sprintf(statstr, "NetWatch! %08x %08x", smi_status(), counter); - strblit(statstr, 0, 0, 0); + if (!fb || fb->curmode.text) + { + sprintf(statstr, "NetWatch! %08x %08x", smi_status(), counter); + strblit(statstr, 0, 0, 0); + } eth_poll(); -- 2.43.0