summaryrefslogtreecommitdiffhomepage
path: root/dev/Boot/Mod/SysChk/Module.cc
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-01-24 10:38:36 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-01-24 10:38:36 +0100
commit7b4bd3577a31d0f0adc7371840642791ae1567f4 (patch)
tree1a8afc973aaa739d0d763315cad2fd376d1cea9c /dev/Boot/Mod/SysChk/Module.cc
ADD: Open version, with important changes kept out.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/Mod/SysChk/Module.cc')
-rw-r--r--dev/Boot/Mod/SysChk/Module.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev/Boot/Mod/SysChk/Module.cc b/dev/Boot/Mod/SysChk/Module.cc
new file mode 100644
index 00000000..0297b177
--- /dev/null
+++ b/dev/Boot/Mod/SysChk/Module.cc
@@ -0,0 +1,36 @@
+/*
+ * ========================================================
+ *
+ * NetBoot
+ * Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved., all rights reserved.
+ *
+ * ========================================================
+ */
+
+#include <BootKit/BootKit.h>
+#include <Mod/CoreGfx/FBMgr.h>
+#include <Mod/CoreGfx/TextMgr.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 <NewKit/Macros.h>
+#include <NewKit/Ref.h>
+#include <BootKit/BootThread.h>
+#include <Mod/CoreGfx/FBMgr.h>
+
+EXTERN_C Int32 ModuleMain(Kernel::HEL::BootInfoHeader* handover)
+{
+#ifdef __ZKA_AMD64__
+ Boot::BDiskFormatFactory<BootDeviceATA> partition_factory;
+
+ if (partition_factory.IsPartitionValid())
+ return kEfiOk;
+
+ return kEfiFail;
+#else
+ return kEfiOk;
+#endif
+}