summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-31 22:27:28 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-31 22:32:59 +0200
commit3c4efadf68e2071429925ea7f90f73341200a42f (patch)
treefa3b3faa39aca899330d6823f16a6cb66371286d /Private/NewBoot/Source
parentbdd680f31ac1b23f5ad9baea60d01f6860e02575 (diff)
Kernel: Improve Drive Manager regarding the NewFS support.
HCFS is also planned, HCFS is a filesystem made for mass media storages. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/NewBoot/Source')
-rw-r--r--Private/NewBoot/Source/HEL/AMD64/BootATA.cxx12
-rw-r--r--Private/NewBoot/Source/HEL/AMD64/BootEPM.cxx6
-rw-r--r--Private/NewBoot/Source/HEL/AMD64/BootFileReader.cxx8
-rw-r--r--Private/NewBoot/Source/HEL/AMD64/BootMain.cxx16
4 files changed, 21 insertions, 21 deletions
diff --git a/Private/NewBoot/Source/HEL/AMD64/BootATA.cxx b/Private/NewBoot/Source/HEL/AMD64/BootATA.cxx
index 5b966813..ed591412 100644
--- a/Private/NewBoot/Source/HEL/AMD64/BootATA.cxx
+++ b/Private/NewBoot/Source/HEL/AMD64/BootATA.cxx
@@ -72,7 +72,7 @@ ATAInit_Retry:
if (statRdy & ATA_SR_ERR) {
writer.Write(
- L"NewBoot.exe: ATA: Select error, not an IDE based hard-drive.\r\n");
+ L"NewOS: ATA: Select error, not an IDE based hard-drive.\r\n");
return false;
}
@@ -108,21 +108,21 @@ ATAInit_Retry:
/* differentiate ATA, ATAPI, SATA and SATAPI */
if (cl == 0x14 && ch == 0xEB) {
- writer.Write(L"NewBoot.exe: PATAPI drive detected.\r\n");
+ writer.Write(L"NewOS: PATAPI drive detected.\r\n");
kATADeviceType = kATADevicePATA_PI;
}
if (cl == 0x69 && ch == 0x96) {
- writer.Write(L"NewBoot.exe: SATAPI drive detected.\r\n");
+ writer.Write(L"NewOS: SATAPI drive detected.\r\n");
kATADeviceType = kATADeviceSATA_PI;
}
if (cl == 0x0 && ch == 0x0) {
- writer.Write(L"NewBoot.exe: PATA drive detected.\r\n");
+ writer.Write(L"NewOS: PATA drive detected.\r\n");
kATADeviceType = kATADevicePATA;
}
if (cl == 0x3c && ch == 0xc3) {
- writer.Write(L"NewBoot.exe: SATA drive detected.\r\n");
+ writer.Write(L"NewOS: SATA drive detected.\r\n");
kATADeviceType = kATADeviceSATA;
}
@@ -211,7 +211,7 @@ BootDeviceATA::BootDeviceATA() noexcept {
BTextWriter writer;
- writer.Write(L"NewBoot.exe: Drive is OnLine.\r\n");
+ writer.Write(L"NewOS: Drive is OnLine.\r\n");
}
}
/**
diff --git a/Private/NewBoot/Source/HEL/AMD64/BootEPM.cxx b/Private/NewBoot/Source/HEL/AMD64/BootEPM.cxx
index 029a28eb..e767cb2d 100644
--- a/Private/NewBoot/Source/HEL/AMD64/BootEPM.cxx
+++ b/Private/NewBoot/Source/HEL/AMD64/BootEPM.cxx
@@ -35,11 +35,11 @@ EXTERN_C Boolean boot_write_epm_partition(const Char* namePart, SizeT namePartLe
BTextWriter writer;
- writer.Write(L"NewBoot.exe: Checking for a NewFS partition...\r\n");
+ writer.Write(L"NewOS: Checking for a NewFS partition...\r\n");
for (SizeT index = 0; index < kEPMMagicLength; ++index) {
if (buf[index] != kEPMMagic[index]) {
- writer.Write(L"NewBoot.exe: Writing a NewFS partition...\r\n");
+ writer.Write(L"NewOS: Writing a NewFS partition...\r\n");
BootBlockType* bootBlock = (BootBlockType*)buf;
@@ -112,6 +112,6 @@ EXTERN_C Boolean boot_write_epm_partition(const Char* namePart, SizeT namePartLe
}
}
- writer.Write(L"NewBoot.exe: Partition found, everything's OK.\r\n");
+ writer.Write(L"NewOS: Partition found, everything's OK.\r\n");
return Yes;
} \ No newline at end of file
diff --git a/Private/NewBoot/Source/HEL/AMD64/BootFileReader.cxx b/Private/NewBoot/Source/HEL/AMD64/BootFileReader.cxx
index 01f4787f..b31f37de 100644
--- a/Private/NewBoot/Source/HEL/AMD64/BootFileReader.cxx
+++ b/Private/NewBoot/Source/HEL/AMD64/BootFileReader.cxx
@@ -46,12 +46,12 @@ BFileReader::BFileReader(const CharacterTypeUTF16* path, EfiHandlePtr ImageHandl
EfiGUID guidImg = EfiGUID(EFI_LOADED_IMAGE_PROTOCOL_GUID);
if (BS->HandleProtocol(ImageHandle, &guidImg, (void**)&img) != kEfiOk) {
- mWriter.Write(L"NewBoot.exe: Fetch-Protocol: No-Such-Protocol").Write(L"\r\n");
+ mWriter.Write(L"NewOS: Fetch-Protocol: No-Such-Protocol").Write(L"\r\n");
this->mErrorCode = kNotSupported;
}
if (BS->HandleProtocol(img->DeviceHandle, &guidEfp, (void**)&efp) != kEfiOk) {
- mWriter.Write(L"NewBoot.exe: Fetch-Protocol: No-Such-Protocol").Write(L"\r\n");
+ mWriter.Write(L"NewOS: Fetch-Protocol: No-Such-Protocol").Write(L"\r\n");
this->mErrorCode = kNotSupported;
return;
}
@@ -59,7 +59,7 @@ BFileReader::BFileReader(const CharacterTypeUTF16* path, EfiHandlePtr ImageHandl
/// Start doing disk I/O
if (efp->OpenVolume(efp, &rootFs) != kEfiOk) {
- mWriter.Write(L"NewBoot.exe: Fetch-Protocol: No-Such-Volume").Write(L"\r\n");
+ mWriter.Write(L"NewOS: Fetch-Protocol: No-Such-Volume").Write(L"\r\n");
this->mErrorCode = kNotSupported;
return;
}
@@ -68,7 +68,7 @@ BFileReader::BFileReader(const CharacterTypeUTF16* path, EfiHandlePtr ImageHandl
if (rootFs->Open(rootFs, &kernelFile, mPath, kEFIFileRead, kEFIReadOnly) !=
kEfiOk) {
- mWriter.Write(L"NewBoot.exe: Fetch-Protocol: No-Such-Path: ")
+ mWriter.Write(L"NewOS: Fetch-Protocol: No-Such-Path: ")
.Write(mPath)
.Write(L"\r\n");
this->mErrorCode = kNotSupported;
diff --git a/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx b/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
index 599a533f..542d62b1 100644
--- a/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
+++ b/Private/NewBoot/Source/HEL/AMD64/BootMain.cxx
@@ -32,7 +32,7 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle,
BTextWriter writer;
/// Splash screen stuff
- writer.Write(L"MahroussLogic (R) NewBoot.exe: ")
+ writer.Write(L"MahroussLogic (R) NewOS: ")
.Write(BVersionString::Shared());
writer.Write(L"\r\nNewBoot.exe: Firmware Vendor: ")
@@ -53,10 +53,10 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle,
isIniNotFound =
boot_write_epm_partition(namePart, kEPMNameLength, &ataDrv);
} else if (SystemTable->FirmwareVendor[0] != '@') {
- writer.Write(L"NewBoot.exe: This firmware can't understand NewOS, please use Mahrouss Logic products instead\r\nNewBoot.exe: Our website: www.el-mahrouss-logic.com\r\n");
+ writer.Write(L"NewOS: This firmware can't understand NewOS, please use Mahrouss Logic products instead\r\nNewBoot.exe: Our website: www.el-mahrouss-logic.com\r\n");
return kEfiFail;
} else if (!ataDrv) {
- writer.Write(L"NewBoot.exe: This computer can't work with NewOS, please use Mahrouss Logic products instead\r\nNewBoot.exe: Our website: www.el-mahrouss-logic.com\r\n");
+ writer.Write(L"NewOS: This computer can't work with NewOS, please use Mahrouss Logic products instead\r\nNewBoot.exe: Our website: www.el-mahrouss-logic.com\r\n");
return kEfiFail;
}
#else
@@ -142,7 +142,7 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle,
handoverHdrPtr->f_FirmwareVendorLen);
#ifdef __DEBUG__
- writer.Write(L"NewBoot.exe: Fetching ACPI's 'RSD PTR'...").Write(L"\r\n");
+ writer.Write(L"NewOS: Fetching ACPI's 'RSD PTR'...").Write(L"\r\n");
#endif
for (SizeT indexVT = 0; indexVT < SystemTable->NumberOfTableEntries;
@@ -159,7 +159,7 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle,
#ifdef __DEBUG__
writer
.Write(
- L"NewBoot.exe: Found ACPI's 'RSD PTR' table on this machine.")
+ L"NewOS: Found ACPI's 'RSD PTR' table on this machine.")
.Write(L"\r\n");
#endif
@@ -168,12 +168,12 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle,
}
if (!isIniNotFound) {
- writer.Write(L"NewBoot.exe: No partition found for NewOS. (HCR-1000)\r\n");
+ writer.Write(L"NewOS: No partition found for NewOS. (HCR-1000)\r\n");
} else {
handoverHdrPtr->f_Magic = kHandoverMagic;
handoverHdrPtr->f_Version = kHandoverVersion;
- writer.Write(L"NewBoot.exe: Running NewOS...\r\n");
+ writer.Write(L"NewOS: Running NewOS...\r\n");
EFI::ExitBootServices(MapKey, ImageHandle);
@@ -184,7 +184,7 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle,
return kEfiOk;
} else {
- writer.Write(L"NewBoot.exe: Error-Code: HLDR-0003\r\n");
+ writer.Write(L"NewOS: Error-Code: HLDR-0003\r\n");
}
EFI::Stop();