summaryrefslogtreecommitdiff
path: root/src/kernel/vga.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vga.h')
-rw-r--r--src/kernel/vga.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/vga.h b/src/kernel/vga.h
index 2214f27..5658437 100644
--- a/src/kernel/vga.h
+++ b/src/kernel/vga.h
@@ -22,7 +22,13 @@ OF THIS SOFTWARE.
#ifndef VGA_H
#define VGA_H
+#define put_debug(name, value) \
+ put_sz(name ": 0x"); \
+ put_32_hex(value); \
+ put_char('\n');
+
#define VGA_BUFFER ((uint8_t *)0x000b8000)
+void clear(void);
void put_char(uint8_t ch);
void put_sz(uint8_t *s);
void put_16(uint16_t n);