]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - kernel/arch/x86/tty/tty.c
Also compile kernel as ELF for easier disassembly
[nameless-os.git] / kernel / arch / x86 / tty / tty.c
index 6d250c5476825869947f4358ec549e2e572595ea..d3ef87b1d862290002347932aaa03c8b02f2e4b0 100644 (file)
@@ -1,7 +1,7 @@
 #define VGA_WIDTH 80
 #define VGA_HEIGHT 25
 
-char *video_memory = (char *) 0xB8000; /* VGA VRAM starts at 0xB8000 */
+volatile char *video_memory = (char *) 0xB8000; /* VGA VRAM starts at 0xB8000 */
 
 static int cursor_x = 0;
 static int cursor_y = 0;
@@ -34,7 +34,7 @@ void scroll_up(void)
        cursor_y = VGA_HEIGHT - 1;
 }
 
-void kprint(char *string)
+void kprint(const char *string)
 {
        char next_char;
        next_char = *string;