mirror of
https://github.com/Fennix-Project/Lynx.git
synced 2025-07-11 23:29:15 +00:00
Code stub
This commit is contained in:
23
UEFI/src/Lynx.c
Normal file
23
UEFI/src/Lynx.c
Normal file
@ -0,0 +1,23 @@
|
||||
#include <efi.h>
|
||||
#include <efilib.h>
|
||||
|
||||
#include "FileLoader.h"
|
||||
|
||||
EFI_STATUS EFIAPI efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
|
||||
{
|
||||
InitializeLib(ImageHandle, SystemTable);
|
||||
SystemTable->BootServices->SetWatchdogTimer(0, 0, 0, NULL);
|
||||
Print(L"Lynx Bootloader © EnderIce2 2022\n");
|
||||
EFI_FILE *Kernel = LoadFile(NULL, L"kernel.fsys", ImageHandle, SystemTable);
|
||||
|
||||
if (Kernel == NULL)
|
||||
{
|
||||
Print(L"Kernel not found\n");
|
||||
while (1)
|
||||
asm("hlt");
|
||||
}
|
||||
|
||||
while (1)
|
||||
asm("hlt");
|
||||
return EFI_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user