mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user