From: Joshua Wise Date: Thu, 4 Dec 2008 22:42:31 +0000 (-0500) Subject: Don't write to the text console if we don't need to. X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/5cb80fe1822bb0f49a4a1754424ebdd77503e284 Don't write to the text console if we don't need to. --- 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();