summaryrefslogtreecommitdiff
path: root/src/kmain.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-02-03 00:50:07 -0500
committerFreya Murphy <freya@freyacat.org>2024-02-03 00:53:58 -0500
commit90a6065691beee52bf5309916fba98f7580d27be (patch)
tree0b5375d20c189f62d394c473d371f7bf7f1d3fc5 /src/kmain.c
parentimproved debugger, refactored (diff)
downloadcorn-90a6065691beee52bf5309916fba98f7580d27be.tar.gz
corn-90a6065691beee52bf5309916fba98f7580d27be.tar.bz2
corn-90a6065691beee52bf5309916fba98f7580d27be.zip
refactor, new arch dirs, (wip) page alloc on write, hsv screen (convert to userspace later), other fixes
Diffstat (limited to '')
-rw-r--r--src/kmain.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/kmain.c b/src/kmain.c
index 7ae9d01..249dd84 100644
--- a/src/kmain.c
+++ b/src/kmain.c
@@ -1,28 +1,27 @@
-#include "fpu.h"
+#include <fpu.h>
#include <acpi.h>
#include <memory.h>
#include <lib.h>
-#include <fb.h>
+#include <serial.h>
#include <shim.h>
#include <panic.h>
#include <pci.h>
+#include <screen.h>
void kmain(struct boot_info *info) {
enable_fpu();
memory_init(&info->map);
pci_init();
- fb_init(1024, 768);
- //acpi_init(info->acpi_table);
+ screen_init();
+ acpi_init(info->acpi_table);
kprintf("enterd kmain\n");
- *(char *)(0xB8000 + 0x144) = 'h';
- *(char *)(0xB8000 + 0x146) = 'i';
+ char *test = kalloc(5);
+ *test = 1;
while (1) {
- __asm__("hlt;");
- // loop so we dont halt
- // this allows interrupts to fire
+ screen_redraw();
}
}