From d67240d20d1d4bbe33134e640fd632cfd5fc6795 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 22 Apr 2025 22:11:14 +0200 Subject: dev, kernel: WiP changes done to kernel and SysChk module. - Getting SysChk to work again. - Refactor scheduler. Signed-off-by: Amlal El Mahrouss --- dev/boot/modules/SysChk/SysChk.cc | 2 ++ dev/boot/src/HEL/AMD64/BootEFI.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'dev/boot') diff --git a/dev/boot/modules/SysChk/SysChk.cc b/dev/boot/modules/SysChk/SysChk.cc index 1b1de6f4..9bdeb38d 100644 --- a/dev/boot/modules/SysChk/SysChk.cc +++ b/dev/boot/modules/SysChk/SysChk.cc @@ -31,6 +31,8 @@ EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) NE_UNUSED(handover); #if defined(__ATA_PIO__) + fw_init_efi((EfiSystemTable*)handover->f_FirmwareCustomTables[1]); + Boot::BootTextWriter writer; Boot::BDiskFormatFactory partition_factory; diff --git a/dev/boot/src/HEL/AMD64/BootEFI.cc b/dev/boot/src/HEL/AMD64/BootEFI.cc index 85b7f729..ae6d4deb 100644 --- a/dev/boot/src/HEL/AMD64/BootEFI.cc +++ b/dev/boot/src/HEL/AMD64/BootEFI.cc @@ -164,7 +164,7 @@ EFI_EXTERN_C EFI_API Int32 BootloaderMain(EfiHandlePtr image_handle, Int32 trials = 5 * 10000000; - writer.Write("BootZ: Allocating sufficent memory, trying with 4GB...\r"); + writer.Write("BootZ: Allocating sufficent memory, trying 4GB...\r"); while (BS->AllocatePool(EfiLoaderData, handover_hdr->f_BitMapSize, &handover_hdr->f_BitMapStart) != kEfiOk) { -- cgit v1.2.3