summaryrefslogtreecommitdiffhomepage
path: root/src/boot/BootKit/BootKit.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 15:01:34 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 15:01:34 -0500
commitceabd82ac8e796249feacf39c836034ed5e11c6d (patch)
treee446d471a0eaf4ed7ac67e878ce4fb02334a2acb /src/boot/BootKit/BootKit.h
parent0376382a848ef5ebbb0e02428c9d1df8a099d8b4 (diff)
chore: source code review and fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/boot/BootKit/BootKit.h')
-rw-r--r--src/boot/BootKit/BootKit.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/boot/BootKit/BootKit.h b/src/boot/BootKit/BootKit.h
index e1a2b628..55392ef6 100644
--- a/src/boot/BootKit/BootKit.h
+++ b/src/boot/BootKit/BootKit.h
@@ -40,7 +40,7 @@
/***********************************************************************************/
namespace Boot {
-void ThrowError(const WideChar* errorCode, const WideChar* reason) noexcept;
+void ThrowError(const WideChar* errorCode, const WideChar* reason);
class BootTextWriter;
class BootFileReader;
@@ -205,7 +205,7 @@ class BDiskFormatFactory final {
Boolean Format(const Char* part_name);
/// @brief check if partition is good.
- Bool IsPartitionValid() noexcept {
+ Bool IsPartitionValid() {
#if defined(BOOTZ_EPM_SUPPORT)
fDiskDev.Leak().mBase = (kEPMBootBlockLba);
fDiskDev.Leak().mSize = sizeof(EPM_PART_BLOCK);
@@ -293,16 +293,16 @@ inline Boolean BDiskFormatFactory<BootDev>::Format(const Char* part_name) {
CopyMem(gpt_part->Signature, reinterpret_cast<VoidPtr>(const_cast<Char*>(kMagicGPT)),
StrLen(kMagicGPT));
- gpt_part->Revision = 0x00010000;
+ gpt_part->Revision = 0x00010000;
gpt_part->HeaderSize = sizeof(GPT_PARTITION_TABLE);
gpt_part->CRC32 = 0x00000000;
- gpt_part->Reserved1 = 0x00000000;
- gpt_part->LBAHeader = 0x00000000;
- gpt_part->LBAAltHeader = 0x00000000;
+ gpt_part->Reserved1 = 0x00000000;
+ gpt_part->LBAHeader = 0x00000000;
+ gpt_part->LBAAltHeader = 0x00000000;
gpt_part->FirstGPTEntry = 0x00000000;
- gpt_part->LastGPTEntry = 0x00000000;
+ gpt_part->LastGPTEntry = 0x00000000;
gpt_part->Guid.Data1 = 0x00000000;
gpt_part->Guid.Data2 = 0x0000;
@@ -312,10 +312,10 @@ inline Boolean BDiskFormatFactory<BootDev>::Format(const Char* part_name) {
gpt_part->Revision = 0x00010000;
- gpt_part->StartingLBA = 0x00000000;
+ gpt_part->StartingLBA = 0x00000000;
gpt_part->NumPartitionEntries = 0x00000000;
- gpt_part->SizeOfEntries = 0x00000000;
- gpt_part->CRC32PartEntry = 0x00000000;
+ gpt_part->SizeOfEntries = 0x00000000;
+ gpt_part->CRC32PartEntry = 0x00000000;
SetMem(gpt_part->Reserved2, 0, kSectorAlignGPT_PartTbl);