diff options
author | Marvin Borner | 2020-01-26 18:38:36 +0100 |
---|---|---|
committer | Marvin Borner | 2020-01-26 18:38:36 +0100 |
commit | bb2a6b4d93512e8afc1b1999eb58f1f506cc27ae (patch) | |
tree | ea30b53ac6043faddd1cdb2fdea17f37178b1cc7 /src/kernel/graphics/font.c | |
parent | b8630d78a15a69f50dac747e41e84b143dd99b08 (diff) |
Magic commit
Some things work, others don't.
Diffstat (limited to 'src/kernel/graphics/font.c')
-rw-r--r-- | src/kernel/graphics/font.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/kernel/graphics/font.c b/src/kernel/graphics/font.c deleted file mode 100644 index 10372b3..0000000 --- a/src/kernel/graphics/font.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <kernel/fs/marfs/marfs.h> -#include <kernel/graphics/font.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 *) kmalloc(100000);; // High quality shit - - uint8_t boot_drive_id = (uint8_t) (*((uint8_t *) 0x9000)); - if (boot_drive_id != 0xE0) { - struct ata_interface *primary_master = new_ata(1, 0x1F0); - marfs_init(primary_master); - marfs_read_whole_file(5, (uint8_t *) font); - } else { - char *font_p[] = {"FONT.BIN"}; - struct iso9660_entity *font_e = ISO9660_get(font_p, 1); - if (!font_e) panic("Font not found!"); - ATAPI_granular_read(1 + (font_e->length / 2048), font_e->lba, (uint8_t *) font); - kfree(font_e); - } - vga_log("Successfully loaded font"); -}
\ No newline at end of file |