aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/font.c
diff options
context:
space:
mode:
authorMarvin Borner2020-01-20 23:12:54 +0100
committerMarvin Borner2020-01-20 23:12:54 +0100
commit391ed256d21a6ae2e2456d1809f357e6e96e15d1 (patch)
tree0fe9ffb3c59bbfeb3d8a04ab7fc6efba60d81e79 /src/kernel/graphics/font.c
parentd5d1749257ff8b9aa6b5ace4b4720b484a2860f3 (diff)
Added pure awesomeness
Actually quite some days of work but ok
Diffstat (limited to 'src/kernel/graphics/font.c')
-rw-r--r--src/kernel/graphics/font.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/graphics/font.c b/src/kernel/graphics/font.c
index 49bcd8a..10372b3 100644
--- a/src/kernel/graphics/font.c
+++ b/src/kernel/graphics/font.c
@@ -1,16 +1,14 @@
#include <kernel/fs/marfs/marfs.h>
-#include <kernel/paging/paging.h>
#include <kernel/graphics/font.h>
-#include <kernel/lib/stdlib/liballoc.h>
#include <kernel/fs/ata_pio.h>
#include <kernel/fs/atapi_pio.h>
#include <kernel/system.h>
#include <kernel/fs/iso9660/iso9660.h>
+#include <kernel/memory/kheap.h>
void font_install()
{
- font = (struct font *) paging_alloc_pages(25);; // High quality shit
- paging_set_user((uint32_t) font, 25);
+ font = (struct font *) kmalloc(100000);; // High quality shit
uint8_t boot_drive_id = (uint8_t) (*((uint8_t *) 0x9000));
if (boot_drive_id != 0xE0) {