commit cc3140a780880c2c0e7cf74bd9b3adfb9652faa0
parent 23bdb4c066eba2c9a1465713b009615bd2ce2359
Author: Matsuda Kenji <info@mtkn.jp>
Date: Fri, 29 Mar 2024 15:52:20 +0900
invalid opcode
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/loader.c b/loader.c
@@ -106,6 +106,11 @@ EfiMain(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *systab)
efi_printf("exit boot services: %d\n", stat);
return stat;
}
+
+ for (UINTN i = 0; i < gop->Mode->FrameBufferSize / 2; i+=3) {
+ frame_buffer[i] = 0x0;
+ }
+
typedef void (* Kernel) (void);
((Kernel) kernel_ehdr.entry)();