diff options
author | Marvin Borner | 2019-11-30 13:22:16 +0100 |
---|---|---|
committer | GitHub | 2019-11-30 13:22:16 +0100 |
commit | 728d764f314b98adec26d8e674b7235db6c4ad63 (patch) | |
tree | ddbe09554a056eba4a470041c9e3d74ddd64ff8a /src/kernel/graphics/font.c | |
parent | e294302ec8940669e7c8c5559eff2441f9ce4988 (diff) | |
parent | de2f84f733776b19c0adecbfc8b31ea88f7b6291 (diff) |
Merged external font
External font resources (smaller kernel)
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..1e4e666 --- /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 <kernel/graphics/font.h> +#include <mlibc/stdlib/liballoc.h> +#include <kernel/fs/ata_pio.h> + +void font_install() { + 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); + + font = (struct font *) kmalloc(100000); // High quality shit + marfs_read_whole_file(4, (uint8_t *) font); + } +}
\ No newline at end of file |