aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics
diff options
context:
space:
mode:
authorMarvin Borner2019-09-21 18:07:07 +0200
committerMarvin Borner2019-09-21 18:07:07 +0200
commitc31d465a62fbc0ec3194838db4745585471c1050 (patch)
tree10e544bc856ea1898e39d6c9304f746aa1d74670 /src/kernel/graphics
parentd91024fb750356bad65cce5bdef206e530b37c53 (diff)
Added ACPI based shutdown command
Diffstat (limited to 'src/kernel/graphics')
-rw-r--r--src/kernel/graphics/vesa.c3
-rw-r--r--src/kernel/graphics/vga.c16
2 files changed, 9 insertions, 10 deletions
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c
index b178645..0a121e5 100644
--- a/src/kernel/graphics/vesa.c
+++ b/src/kernel/graphics/vesa.c
@@ -1,7 +1,6 @@
#include "graphics.h"
-extern char *find_mode();
void vesa_init() {
- terminal_write_line(find_mode());
+ terminal_write_line("Init");
} \ No newline at end of file
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) {