diff options
author | Marvin Borner | 2019-11-28 21:26:22 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-28 21:27:53 +0100 |
commit | 4ada94d4db995ebf150dd3ecfc8efd3241a6ff84 (patch) | |
tree | 18f67894b7d517ade02ee1bada0bcdf8688eeec4 /src/kernel/graphics/font.c | |
parent | e294302ec8940669e7c8c5559eff2441f9ce4988 (diff) |
Made font external module
Diffstat (limited to 'src/kernel/graphics/font.c')
-rw-r--r-- | src/kernel/graphics/font.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/kernel/graphics/font.c b/src/kernel/graphics/font.c new file mode 100644 index 0000000..b2971ec --- /dev/null +++ b/src/kernel/graphics/font.c @@ -0,0 +1,17 @@ +#include <kernel/fs/marfs/marfs.h> +#include <kernel/paging/paging.h> +#include <kernel/io/io.h> +#include <mlibc/stdlib/liballoc.h> + +void font_install() { + uint8_t boot_drive_id = (uint8_t) (*((uint8_t *) 0x9000)); + if (boot_drive_id != 0xE0) { + uint32_t *font = (uint32_t *) kmalloc(0x18326); // High quality shit + marfs_read_whole_file(4, (uint8_t *) (font + 4096)); + + for (int i = 0; i < 10; i++) { + serial_write_hex(font[i]); + serial_write("\n"); + } + } +}
\ No newline at end of file |