1 
2 /*
3  * Debug Console for QEmu compatible port 0xe9
4  */
5 
6 #include <stdint.h>
7 
8 #include <sys/cdefs.h>
9 
10 #include <machine/amd64.h>
11 #include <machine/amd64op.h>
12 
DebugConsole_Init()13 void DebugConsole_Init()
14 {
15 }
16 
DebugConsole_Putc(short c)17 void DebugConsole_Putc(short c)
18 {
19     outb(0xe9, (uint8_t)c);
20 }
21 
DebugConsole_Puts(const char * str)22 void DebugConsole_Puts(const char *str)
23 {
24     const char *p = str;
25     while (*p != '\0')
26         DebugConsole_Putc(*p++);
27 }
28 
29