summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/modules/SysChk
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-19 23:10:59 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-19 23:10:59 +0200
commitd8a0d7e7577fe1322d3959abefd6f35ea9daa65f (patch)
tree529e4be28ef7bb33026d703b2d1a69dbbe851175 /dev/boot/modules/SysChk
parenta9653add416fbddc1969a75adb733bc9e9c675d6 (diff)
dev(tweaks): use HandoverTable enum for deducing BS or ST indices.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/modules/SysChk')
-rw-r--r--dev/boot/modules/SysChk/SysChk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/boot/modules/SysChk/SysChk.cc b/dev/boot/modules/SysChk/SysChk.cc
index c93ef83b..4f71ee31 100644
--- a/dev/boot/modules/SysChk/SysChk.cc
+++ b/dev/boot/modules/SysChk/SysChk.cc
@@ -27,7 +27,7 @@
#endif // !kMachineModel
EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) {
- fw_init_efi((EfiSystemTable*) handover->f_FirmwareCustomTables[1]);
+ fw_init_efi((EfiSystemTable*) handover->f_FirmwareCustomTables[Kernel::HEL::kHandoverTableST]);
#if defined(__ATA_PIO__)
Boot::BDiskFormatFactory<BootDeviceATA> partition_factory;