aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-22 21:38:06 -0800
committerChristian Cunningham <cc@localhost>2021-12-22 21:38:06 -0800
commit5427e73f6437edd0c889a107ebb6adb4436d55da (patch)
tree29770a8a61c9039e3008f4350c91a8d8b6bd6f64 /src
parent88df035f3e79a6dc7280e457bd343285e8313799 (diff)
Added fonts
Diffstat (limited to 'src')
-rw-r--r--src/sys/core.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/src/sys/core.c b/src/sys/core.c
index e7b8605..f3699d8 100644
--- a/src/sys/core.c
+++ b/src/sys/core.c
@@ -147,11 +147,17 @@ void output_irq_status(void) {
write_string(&g_Drawer, " | GPU FIQ: Core ");
write_hex32(&g_Drawer, (g_val >> 2) & 0b11);
- uart_string("\033[6;1H");
+ write_string(&g_Drawer, "\n");
+ write_hex32(&g_Drawer, ib_val);
+ write_string(&g_Drawer, " ");
+ write_hex32(&g_Drawer, i1_val);
+ write_string(&g_Drawer, " ");
+ write_hex32(&g_Drawer, i2_val);
+ write_string(&g_Drawer, " ");
+ write_hex32(&g_Drawer, f_val);
+
// Check UART IRQ
- uart_string((char*)"UART:");
- set_drawer(&g_Drawer, 0, 2);
- write_string(&g_Drawer, "UART: ");
+ write_string(&g_Drawer, "\nUART: ");
if (i2_val & (1<<25)) {
uart_string(irq_on);
write_cstring(&g_Drawer, "Enabled", 0x00FF00);
@@ -160,7 +166,6 @@ void output_irq_status(void) {
write_cstring(&g_Drawer, "Disabled", 0xFF0000);
}
// Check TIMER IRQ
- uart_string((char*)" TIMER:");
write_string(&g_Drawer, "\n");
write_string(&g_Drawer, "TIMER: ");
if (ib_val & (1<<0)) {
@@ -176,18 +181,6 @@ void output_irq_status(void) {
write_cstring(&g_Drawer, "Disabled", 0xFF0000);
}
- uart_string("\033[7;1H");
- uart_hex(ib_val);
- uart_char(0x20);
- uart_hex(i1_val);
- uart_char(0x20);
- uart_hex(i2_val);
- uart_char(0x20);
- uart_hex(f_val);
- draw_hex32(0+9*0, 1, ib_val);
- draw_hex32(0+9*1, 1, i1_val);
- draw_hex32(0+9*2, 1, i2_val);
- draw_hex32(0+9*3, 1, f_val);
}
void postinit() {