]> Joshua Wise's Git repositories - netwatch.git/commitdiff
Don't write to the text console if we don't need to.
authorJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 4 Dec 2008 22:42:31 +0000 (17:42 -0500)
committerJoshua Wise <joshua@nyus.joshuawise.com>
Thu, 4 Dec 2008 22:42:31 +0000 (17:42 -0500)
aseg-paging/main.c
aseg-paging/smi.c

index 7b5c09350cf87b5005421a312260fe57e188f854..ddde1b9ae018701076945e312afcd34e56c5d05c 100644 (file)
@@ -4,6 +4,7 @@
 #include <minilib.h>
 #include <smi.h>
 #include <pci-bother.h>
+#include <fb.h>
 #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)
index 031797d28efe7d5299d1aee94753b40a58406529..7f75a8539e1acf849d163fba5f8736aac3e14ff4 100644 (file)
@@ -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();
        
This page took 0.029921 seconds and 4 git commands to generate.