diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-10 09:41:33 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-10 09:41:33 +0200 |
| commit | e50f871e6852beacb53986f930ed2d5dead84838 (patch) | |
| tree | f9a526d927e9b73a588e9c7db5cd99bf1622ca23 /dev/boot/modules/SysChk/SysChk.cc | |
| parent | 26932fb28c6d8724222fc80705976369f2f5dbb3 (diff) | |
kernel, boot: a lot of improvements regarding memory probing.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/modules/SysChk/SysChk.cc')
| -rw-r--r-- | dev/boot/modules/SysChk/SysChk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/boot/modules/SysChk/SysChk.cc b/dev/boot/modules/SysChk/SysChk.cc index ed14d2cd..3086cdc6 100644 --- a/dev/boot/modules/SysChk/SysChk.cc +++ b/dev/boot/modules/SysChk/SysChk.cc @@ -23,12 +23,12 @@ // Makes the compiler shut up. #ifndef kMachineModel -#define kMachineModel "NeKrnl" +#define kMachineModel "Ne" #endif // !kMachineModel EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) { -#ifdef __NE_AMD64__ +#ifdef __ATA_PIO__ Boot::BDiskFormatFactory<BootDeviceATA> partition_factory; if (partition_factory.IsPartitionValid()) @@ -40,7 +40,7 @@ EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) desc.fFileName[1] = 0; desc.fKind = kNeFSCatalogKindDir; - partition_factory.Format(kMachineModel, &desc, sizeof(Boot::BDiskFormatFactory<BootDeviceATA>::BFileDescriptor)); + partition_factory.Format(kMachineModel, &desc, 1); if (partition_factory.IsPartitionValid()) return kEfiOk; |
