Add the beginning of support for kernel graphics to bootloader.

* Load a font file off disk to pass to kernel
* Expose a framebuffer to the kernel
* Currently the kernel just paints the screen red
This commit is contained in:
Justin C. Miller
2018-04-01 22:48:46 -07:00
parent 23365b39c7
commit 4577c2d10c
10 changed files with 338 additions and 104 deletions

View File

@@ -1,4 +1,4 @@
#include <efi.h>
#include "utility.h"
struct error_code_desc {
EFI_STATUS code;
@@ -60,3 +60,12 @@ util_error_message(EFI_STATUS status)
else
return L"Unknown Warning";
}
size_t
wstrlen(const CHAR16 *s)
{
size_t count = 0;
while (s && *s++) count++;
return count;
}