From c31d465a62fbc0ec3194838db4745585471c1050 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 21 Sep 2019 18:07:07 +0200 Subject: Added ACPI based shutdown command --- src/kernel/graphics/vga.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/kernel/graphics/vga.c') diff --git a/src/kernel/graphics/vga.c b/src/kernel/graphics/vga.c index 86c00ff..a72ea91 100644 --- a/src/kernel/graphics/vga.c +++ b/src/kernel/graphics/vga.c @@ -53,18 +53,18 @@ void terminal_clear() { } void terminal_enable_cursor(uint8_t cursor_start, uint8_t cursor_end) { - send(0x3D4, 0x0A); - send(0x3D5, (receive(0x3D5) & 0xC0) | cursor_start); - send(0x3D4, 0x0B); - send(0x3D5, (receive(0x3D5) & 0xE0) | cursor_end); + send_b(0x3D4, 0x0A); + send_b(0x3D5, (receive_b(0x3D5) & 0xC0) | cursor_start); + send_b(0x3D4, 0x0B); + send_b(0x3D5, (receive_b(0x3D5) & 0xE0) | cursor_end); } void terminal_update_cursor(void) { unsigned temp = terminal_row * VGA_WIDTH + terminal_column; - send(0x3D4, 14); - send(0x3D5, temp >> 8); - send(0x3D4, 15); - send(0x3D5, temp); + send_b(0x3D4, 14); + send_b(0x3D5, temp >> 8); + send_b(0x3D4, 15); + send_b(0x3D5, temp); } void terminal_initialize(void) { -- cgit v1.2.3