From 73cf3eddd480f2bd7e987c58da82c243861a5314 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 14 Feb 2015 22:37:35 +0100 Subject: Many things : - fix context switching (it actually worked only because of optimizations!) - complete mchmap implementation - adjust elf parser to load binaries correctly even without FM_MMAP --- src/kernel/core/dbglog.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/kernel/core/dbglog.c') diff --git a/src/kernel/core/dbglog.c b/src/kernel/core/dbglog.c index e042625..54d396c 100644 --- a/src/kernel/core/dbglog.c +++ b/src/kernel/core/dbglog.c @@ -14,9 +14,9 @@ static const size_t VGA_WIDTH = 80; static const size_t VGA_HEIGHT = 25; -static uint8_t vga_color = 7; -static uint16_t* vga_buffer = 0; -static uint16_t vga_row = 0, vga_column = 0; +static uint8_t vga_color; +static uint16_t* vga_buffer; +static uint16_t vga_row, vga_column; static uint16_t make_vgaentry(char c, uint8_t color) { uint16_t c16 = c; @@ -41,6 +41,7 @@ static void vga_init() { vga_row = 0; vga_column = 0; vga_buffer = (uint16_t*) (K_HIGHHALF_ADDR + 0xB8000); + vga_color = 7; for (size_t y = 0; y < VGA_HEIGHT; y++) { for (size_t x = 0; x < VGA_WIDTH; x++) { -- cgit v1.2.3