summaryrefslogtreecommitdiffhomepage
path: root/src/boot/modules/SysChk/SysChk.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-27 05:41:16 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-27 05:41:16 +0100
commit92e86a036219d31c56d12ba41adab51d62a26ecc (patch)
treec15a638ca24b0999677c4f17f977e3b542b58a98 /src/boot/modules/SysChk/SysChk.cc
parent4f65115434ca019d6a8c1b31fd360fffb36863f6 (diff)
chore: kernel, boot: updated sources copyright year and improve stability.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/boot/modules/SysChk/SysChk.cc')
-rw-r--r--src/boot/modules/SysChk/SysChk.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/boot/modules/SysChk/SysChk.cc b/src/boot/modules/SysChk/SysChk.cc
deleted file mode 100644
index ebc2be68..00000000
--- a/src/boot/modules/SysChk/SysChk.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
-// Licensed under the Apache License, Version 2.0 (see LICENSE file)
-// Official repository: https://github.com/nekernel-org/nekernel
-
-#include <BootKit/BootKit.h>
-#include <BootKit/BootThread.h>
-#include <BootKit/HW/SATA.h>
-#include <FirmwareKit/EFI.h>
-#include <FirmwareKit/EFI/API.h>
-#include <FirmwareKit/Handover.h>
-#include <KernelKit/MSDOS.h>
-#include <KernelKit/PE.h>
-#include <KernelKit/PEF.h>
-#include <NeKit/Macros.h>
-#include <NeKit/Ref.h>
-#include <modules/CoreGfx/CoreGfx.h>
-#include <modules/CoreGfx/TextGfx.h>
-
-// Makes the compiler shut up.
-#ifndef kMachineModel
-#define kMachineModel "OS"
-#endif // !kMachineModel
-
-EXTERN_C Int32 SysChkModuleMain(Kernel::HEL::BootInfoHeader* handover) {
- fw_init_efi((EfiSystemTable*) handover->f_FirmwareCustomTables[Kernel::HEL::kHandoverTableST]);
-
-#if defined(__ATA_PIO__)
- Boot::BDiskFormatFactory<Boot::BootDeviceATA> partition_factory;
-#elif defined(__AHCI__)
- Boot::BDiskFormatFactory<Boot::BootDeviceSATA> partition_factory;
-#endif
-
- if (partition_factory.IsPartitionValid()) return kEfiOk;
-
- return partition_factory.Format(kMachineModel);
-}