diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-27 05:41:16 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-27 05:41:16 +0100 |
| commit | 92e86a036219d31c56d12ba41adab51d62a26ecc (patch) | |
| tree | c15a638ca24b0999677c4f17f977e3b542b58a98 /src/boot/modules | |
| parent | 4f65115434ca019d6a8c1b31fd360fffb36863f6 (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')
| -rw-r--r-- | src/boot/modules/BootNet/BootNet.cpp (renamed from src/boot/modules/BootNet/BootNet.cc) | 20 | ||||
| -rw-r--r-- | src/boot/modules/BootNet/amd64.json | 6 | ||||
| -rw-r--r-- | src/boot/modules/SysChk/SysChk.cpp (renamed from src/boot/modules/SysChk/SysChk.cc) | 0 | ||||
| -rw-r--r-- | src/boot/modules/SysChk/amd64-ahci-epm.json | 12 | ||||
| -rw-r--r-- | src/boot/modules/SysChk/amd64-ahci-gpt.json | 12 | ||||
| -rw-r--r-- | src/boot/modules/SysChk/amd64-pio-epm.json | 14 | ||||
| -rw-r--r-- | src/boot/modules/SysChk/amd64-pio-gpt.json | 14 | ||||
| -rw-r--r-- | src/boot/modules/SysChk/arm64.json | 2 |
8 files changed, 40 insertions, 40 deletions
diff --git a/src/boot/modules/BootNet/BootNet.cc b/src/boot/modules/BootNet/BootNet.cpp index 353f5497..28c72110 100644 --- a/src/boot/modules/BootNet/BootNet.cc +++ b/src/boot/modules/BootNet/BootNet.cpp @@ -18,10 +18,10 @@ EXTERN_C Int32 BootNetModuleMain(Kernel::HEL::BootInfoHeader* handover) { Boot::BootTextWriter writer; - writer.Write("BootNet: Init BootNet...\r"); + writer.Write("Net: Init BootNet...\r"); if (BS->LocateProtocol(&kEfiSimpleProtoGUID, nullptr, (VoidPtr*) &kEfiProtocol) != kEfiOk) { - writer.Write("BootNet: Not supported by firmware.\r"); + writer.Write("Net: Not supported by the current firmware.\r"); return kEfiFail; } @@ -30,28 +30,28 @@ EXTERN_C Int32 BootNetModuleMain(Kernel::HEL::BootInfoHeader* handover) { SetMem(&inet, 0, sizeof(BOOTNET_INTERNET_HEADER)); - writer.Write("BootNet: Downloading kernel...\r"); + writer.Write("Net: Downloading image...\r"); bootnet_read_ip_packet(inet, &inet_out); if (!inet_out) { - writer.Write("BootNet: Not a packet, aborting.\r"); + writer.Write("Net: Not a packet, aborting.\r"); return kEfiFail; } if (inet_out->NB1 != 'O' || inet_out->NB1 != 'N' || inet_out->NB1 != 'E' || inet_out->NB1 != 'T') { - writer.Write("BootNet: Not a packet, aborting.\r"); + writer.Write("Net: Not a packet, aborting.\r"); return kEfiFail; } if (inet_out->Length < 1) { - writer.Write("BootNet: No executable attached to the packet, aborting.\r"); + writer.Write("Net: No executable attached to the packet, aborting.\r"); return kEfiFail; } if (inet_out->Version != kBootNetVersion) { - writer.Write("BootNet: The version clashes, not good.\r"); + writer.Write("Net: The version clashes, not good.\r"); return kEfiFail; } @@ -59,7 +59,7 @@ EXTERN_C Int32 BootNetModuleMain(Kernel::HEL::BootInfoHeader* handover) { Boot::BootThread thread(inet_out->Data); if (thread.IsValid()) { - writer.Write("BootNet: Running NeKernel...\r"); + writer.Write("Net: Running image...\r"); return thread.Start(handover, YES); } @@ -68,11 +68,11 @@ EXTERN_C Int32 BootNetModuleMain(Kernel::HEL::BootInfoHeader* handover) { constexpr auto kROMSize = 0x200; if (inet_out->Length > kROMSize) { - writer.Write("BootNet: Not within 512K, won't flash EEPROM.\r"); + writer.Write("Net: Not an image within 512K, we won't flash the EEPROM.\r"); return kEfiFail; } - writer.Write("BootNet: Programming the flash...\r"); + writer.Write("Net: Programming the EEPROM...\r"); /// TODO: Program new firmware to EEPROM (if crc and size matches) diff --git a/src/boot/modules/BootNet/amd64.json b/src/boot/modules/BootNet/amd64.json index 1f28e837..41ce26e1 100644 --- a/src/boot/modules/BootNet/amd64.json +++ b/src/boot/modules/BootNet/amd64.json @@ -9,11 +9,11 @@ "./" ], "sources_path": [ - "*.cc", + "*.cpp", "*.S", - "../../src/HEL/AMD64/*.cc", + "../../src/HEL/AMD64/*.cpp", "../../src/HEL/AMD64/*.S", - "../../src/*.cc" + "../../src/*.cpp" ], "output_name": "net.efi", "compiler_flags": [ diff --git a/src/boot/modules/SysChk/SysChk.cc b/src/boot/modules/SysChk/SysChk.cpp index ebc2be68..ebc2be68 100644 --- a/src/boot/modules/SysChk/SysChk.cc +++ b/src/boot/modules/SysChk/SysChk.cpp diff --git a/src/boot/modules/SysChk/amd64-ahci-epm.json b/src/boot/modules/SysChk/amd64-ahci-epm.json index 83282c3f..444003cf 100644 --- a/src/boot/modules/SysChk/amd64-ahci-epm.json +++ b/src/boot/modules/SysChk/amd64-ahci-epm.json @@ -3,14 +3,14 @@ "compiler_std": "c++20", "headers_path": ["../", "../../", "../../../kernel", "../../../", "./"], "sources_path": [ - "*.cc", + "*.cpp", "*.S", - "../../src/HEL/AMD64/BootSATA.cc", - "../../src/HEL/AMD64/BootPlatform.cc", + "../../src/HEL/AMD64/BootSATA.cpp", + "../../src/HEL/AMD64/BootPlatform.cpp", "../../src/HEL/AMD64/BootAPI.S", - "../../src/BootTextWriter.cc", - "../../src/BootSupport.cc", - "../../src/New+Delete.cc", + "../../src/BootTextWriter.cpp", + "../../src/BootSupport.cpp", + "../../src/New+Delete.cpp", "../../../kernel/HALKit/AMD64/PCI/*.cpp", "../../../kernel/HALKit/AMD64/Storage/*.cpp", "../../../kernel/src/Storage/*.cpp", diff --git a/src/boot/modules/SysChk/amd64-ahci-gpt.json b/src/boot/modules/SysChk/amd64-ahci-gpt.json index 8fcf2a57..9b0f4546 100644 --- a/src/boot/modules/SysChk/amd64-ahci-gpt.json +++ b/src/boot/modules/SysChk/amd64-ahci-gpt.json @@ -3,14 +3,14 @@ "compiler_std": "c++20", "headers_path": ["../", "../../", "../../../kernel", "../../../", "./"], "sources_path": [ - "*.cc", + "*.cpp", "*.S", - "../../src/HEL/AMD64/BootSATA.cc", - "../../src/HEL/AMD64/BootPlatform.cc", + "../../src/HEL/AMD64/BootSATA.cpp", + "../../src/HEL/AMD64/BootPlatform.cpp", "../../src/HEL/AMD64/BootAPI.S", - "../../src/BootTextWriter.cc", - "../../src/BootSupport.cc", - "../../src/New+Delete.cc", + "../../src/BootTextWriter.cpp", + "../../src/BootSupport.cpp", + "../../src/New+Delete.cpp", "../../../kernel/HALKit/AMD64/PCI/*.cpp", "../../../kernel/HALKit/AMD64/Storage/*.cpp", "../../../kernel/src/Storage/*.cpp", diff --git a/src/boot/modules/SysChk/amd64-pio-epm.json b/src/boot/modules/SysChk/amd64-pio-epm.json index 12d47119..0c4a1c59 100644 --- a/src/boot/modules/SysChk/amd64-pio-epm.json +++ b/src/boot/modules/SysChk/amd64-pio-epm.json @@ -9,14 +9,14 @@ "./" ], "sources_path": [ - "*.cc", + "*.cpp", "*.S", - "../../src/HEL/AMD64/BootATA.cc", - "../../src/HEL/AMD64/BootPlatform.cc", + "../../src/HEL/AMD64/BootATA.cpp", + "../../src/HEL/AMD64/BootPlatform.cpp", "../../src/HEL/AMD64/BootAPI.S", - "../../src/BootTextWriter.cc", - "../../src/BootSupport.cc", - "../../src/New+Delete.cc" + "../../src/BootTextWriter.cpp", + "../../src/BootSupport.cpp", + "../../src/New+Delete.cpp" ], "output_name": "chk.efi", "compiler_flags": [ @@ -42,4 +42,4 @@ "kChkVersionLowest=0x0100", "kChkVersion=0x0100" ] -}
\ No newline at end of file +} diff --git a/src/boot/modules/SysChk/amd64-pio-gpt.json b/src/boot/modules/SysChk/amd64-pio-gpt.json index f68d5d36..ca564067 100644 --- a/src/boot/modules/SysChk/amd64-pio-gpt.json +++ b/src/boot/modules/SysChk/amd64-pio-gpt.json @@ -9,14 +9,14 @@ "./" ], "sources_path": [ - "*.cc", + "*.cpp", "*.S", - "../../src/HEL/AMD64/BootATA.cc", - "../../src/HEL/AMD64/BootPlatform.cc", + "../../src/HEL/AMD64/BootATA.cpp", + "../../src/HEL/AMD64/BootPlatform.cpp", "../../src/HEL/AMD64/BootAPI.S", - "../../src/BootTextWriter.cc", - "../../src/BootSupport.cc", - "../../src/New+Delete.cc" + "../../src/BootTextWriter.cpp", + "../../src/BootSupport.cpp", + "../../src/New+Delete.cpp" ], "output_name": "chk.efi", "compiler_flags": [ @@ -42,4 +42,4 @@ "kChkVersionLowest=0x0100", "kChkVersion=0x0100" ] -}
\ No newline at end of file +} diff --git a/src/boot/modules/SysChk/arm64.json b/src/boot/modules/SysChk/arm64.json index ad5fde6e..2a04c772 100644 --- a/src/boot/modules/SysChk/arm64.json +++ b/src/boot/modules/SysChk/arm64.json @@ -2,7 +2,7 @@ "compiler_path": "clang++", "compiler_std": "c++20", "headers_path": ["../", "../../", "../../../kernel", "../../../", "./"], - "sources_path": ["*.cc", "*.S", "../../src/HEL/ARM64/*.cc", "../../src/HEL/ARM64/*.S", "../../src/*.cc"], + "sources_path": ["*.cpp", "*.S", "../../src/HEL/ARM64/*.cpp", "../../src/HEL/ARM64/*.S", "../../src/*.cpp"], "output_name": "chk.efi", "compiler_flags": [ "-ffreestanding", |
