X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bb7ce16533fb6c1384775dea6e1150e74c229daf..b6ff3c7dbab3f40d03389808d95ac27d416c35e3:/lunaix-os/kernel/tty/tty.c?ds=sidebyside diff --git a/lunaix-os/kernel/tty/tty.c b/lunaix-os/kernel/tty/tty.c index f197559..399b28d 100644 --- a/lunaix-os/kernel/tty/tty.c +++ b/lunaix-os/kernel/tty/tty.c @@ -6,7 +6,7 @@ #include #include -vga_attribute* tty_vga_buffer = (vga_attribute*)VGA_BUFFER_PADDR; +vga_attribute* tty_vga_buffer; vga_attribute tty_theme_color = VGA_COLOR_BLACK; @@ -113,7 +113,7 @@ tty_set_cursor(uint8_t x, uint8_t y) if (x >= TTY_WIDTH || y >= TTY_HEIGHT) { x = y = 0; } - uint32_t pos = y * TTY_WIDTH + x; + u32_t pos = y * TTY_WIDTH + x; io_outb(0x3D4, 14); io_outb(0x3D5, pos / 256); io_outb(0x3D4, 15);