Add a debug output utility.
This commit is contained in:
parent
c2af2eee97
commit
872e6f3392
4 changed files with 24 additions and 4 deletions
13
zion/debug/debug.cpp
Normal file
13
zion/debug/debug.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "debug/debug.h"
|
||||
|
||||
#include "common/port.h"
|
||||
|
||||
#define COM1 0x3f8
|
||||
|
||||
void dbgln(const char* str) {
|
||||
while (*str != 0) {
|
||||
outb(COM1, *str);
|
||||
str++;
|
||||
}
|
||||
outb(COM1, '\n');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue