diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-23 19:52:25 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-23 19:52:25 +0100 |
| commit | 5870e529d9f788588836a9dc9fe8b4f026bfe984 (patch) | |
| tree | e1d4d2f6ebb9df367e6b277b9a0f7584aece0e37 /dev/boot/Mod/SysChk | |
| parent | 328487312fbbeb7a2cdf0b5508c74a43cdb5d499 (diff) | |
kernel(fix): Last fixes in order to build NeKernel, and fix CI.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/boot/Mod/SysChk')
| -rw-r--r-- | dev/boot/Mod/SysChk/.hgkeep | 0 | ||||
| -rw-r--r-- | dev/boot/Mod/SysChk/Boot.S | 22 | ||||
| -rw-r--r-- | dev/boot/Mod/SysChk/Module.cc | 36 | ||||
| -rw-r--r-- | dev/boot/Mod/SysChk/amd64.json | 24 | ||||
| -rw-r--r-- | dev/boot/Mod/SysChk/arm64.json | 26 |
5 files changed, 0 insertions, 108 deletions
diff --git a/dev/boot/Mod/SysChk/.hgkeep b/dev/boot/Mod/SysChk/.hgkeep deleted file mode 100644 index e69de29b..00000000 --- a/dev/boot/Mod/SysChk/.hgkeep +++ /dev/null diff --git a/dev/boot/Mod/SysChk/Boot.S b/dev/boot/Mod/SysChk/Boot.S deleted file mode 100644 index 8ebfb352..00000000 --- a/dev/boot/Mod/SysChk/Boot.S +++ /dev/null @@ -1,22 +0,0 @@ -;; /* -;; * ======================================================== -;; * -;; * BootZ -;; * Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. -;; * -;; * ======================================================== -;; */ - -#ifdef __NE_AMD64__ -.code64 -.intel_syntax noprefix -#endif - -#define kTypeDriver 101 -#define kArchAmd64 122 -#define kHandoverMagic 0xBADCC - -.section .ldr - -.quad kHandoverMagic -.word kTypeDriver diff --git a/dev/boot/Mod/SysChk/Module.cc b/dev/boot/Mod/SysChk/Module.cc deleted file mode 100644 index c22e183b..00000000 --- a/dev/boot/Mod/SysChk/Module.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * ======================================================== - * - * NetBoot - * Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - * - * ======================================================== - */ - -#include <BootKit/BootKit.h> -#include <modules/CoreGfx/FBMgr.h> -#include <modules/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 <modules/CoreGfx/FBMgr.h> - -EXTERN_C Int32 ModuleMain(NeOS::HEL::BootInfoHeader* handover) -{ -#ifdef __NE_AMD64__ - Boot::BDiskFormatFactory<BootDeviceATA> partition_factory; - - if (partition_factory.IsPartitionValid()) - return kEfiOk; - - return kEfiFail; -#else - return kEfiOk; -#endif -} diff --git a/dev/boot/Mod/SysChk/amd64.json b/dev/boot/Mod/SysChk/amd64.json deleted file mode 100644 index 97b6c418..00000000 --- a/dev/boot/Mod/SysChk/amd64.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../", "../../", "../../../kernel", "../../../", "./"], - "sources_path": ["*.cc", "*.S", "../../src/HEL/AMD64/*.cc", "../../src/HEL/AMD64/*.S", "../../src/*.cc"], - "output_name": "syschk.sys", - "compiler_flags": [ - "-nostdlib", - "-std=c++20", - "-fPIC", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17,--image-base,0x10000000,-e,ModuleMain" - ], - "cpp_macros": [ - "__NEOSKRNL__", - "__BOOTZ__", - "__BOOTLDR_STANDALONE__", - "__NE_AMD64__", - "kChkVersionHighest=0x0100", - "kChkVersionLowest=0x0100", - "kChkVersion=0x0100" - ] -} diff --git a/dev/boot/Mod/SysChk/arm64.json b/dev/boot/Mod/SysChk/arm64.json deleted file mode 100644 index 6d9161ea..00000000 --- a/dev/boot/Mod/SysChk/arm64.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compiler_path": "clang++", - "compiler_std": "c++20", - "headers_path": ["../", "../../", "../../../kernel", "../../../", "./"], - "sources_path": ["*.cc", "*.S", "../../src/HEL/ARM64/*.cc", "../../src/HEL/ARM64/*.S", "../../src/*.cc"], - "output_name": "syschk.sys", - "compiler_flags": [ - "-ffreestanding", - "-nostdlib", - "-std=c++20", - "-fno-rtti", - "-fno-exceptions", - "-fuse-ld=lld", - "-Wl,-subsystem:efi_application,-entry:ModuleMain", - "-target aarch64-unknown-windows" - ], - "cpp_macros": [ - "__NEOSKRNL__", - "__BOOTZ__", - "__BOOTLDR_STANDALONE__", - "__NE_ARM64__", - "kChkVersionHighest=0x0100", - "kChkVersionLowest=0x0100", - "kChkVersion=0x0100" - ] -} |
