diff options
author | Marvin Borner | 2019-09-21 18:07:07 +0200 |
---|---|---|
committer | Marvin Borner | 2019-09-21 18:07:07 +0200 |
commit | c31d465a62fbc0ec3194838db4745585471c1050 (patch) | |
tree | 10e544bc856ea1898e39d6c9304f746aa1d74670 /src/kernel/graphics/vga.c | |
parent | d91024fb750356bad65cce5bdef206e530b37c53 (diff) |
Added ACPI based shutdown command
Diffstat (limited to 'src/kernel/graphics/vga.c')
-rw-r--r-- | src/kernel/graphics/vga.c | 16 |
1 files changed, 8 insertions, 8 deletions
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) { |