diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-10 16:47:14 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-10 16:47:14 +0200 |
| commit | 9a0184dae5723488daf16c86ee8a3741cd70f894 (patch) | |
| tree | c62a21c453853b78a012666a7235c5b300a856d2 /Boot/Sources/HEL | |
| parent | 8a2cab86eb8723b2f8b4f85c5d09d764003087a3 (diff) | |
[IMP] Many fixes inside kernel DLL, fixing filesystem now.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Boot/Sources/HEL')
| -rw-r--r-- | Boot/Sources/HEL/AMD64/BootATA.cxx | 3 | ||||
| -rw-r--r-- | Boot/Sources/HEL/AMD64/BootMain.cxx | 11 |
2 files changed, 10 insertions, 4 deletions
diff --git a/Boot/Sources/HEL/AMD64/BootATA.cxx b/Boot/Sources/HEL/AMD64/BootATA.cxx index 63956520..f671569a 100644 --- a/Boot/Sources/HEL/AMD64/BootATA.cxx +++ b/Boot/Sources/HEL/AMD64/BootATA.cxx @@ -252,9 +252,6 @@ BootDeviceATA& BootDeviceATA::Write(CharacterTypeUTF8* Buf, const SizeT& SectorS boot_ata_write(lba, this->Leak().mBus, this->Leak().mMaster, Buf, SectorSz, this->Leak().mSize); - BTextWriter writer; - writer.Write("OK\r"); - return *this; } diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx index 21db7823..f35c13ff 100644 --- a/Boot/Sources/HEL/AMD64/BootMain.cxx +++ b/Boot/Sources/HEL/AMD64/BootMain.cxx @@ -200,7 +200,16 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, if (!checkPart.IsPartitionValid()) { - writer.Write("newosldr: Warning, partition isn't valid! Need to repartition it.\r"); + writer.Write("newosldr: Warning, partition isn't valid! repaired it.\rPlease restart the computer now.\r"); + + BDiskFormatFactory<BootDeviceATA>::BFileDescriptor root; + root.fFileName[0] = kNewFSRoot[0]; + root.fFileName[1] = 0; + + root.fKind = kNewFSCatalogKindDir; + + checkPart.Format("NewOS (ZKA:)", &root, 1); + EFI::Stop(); } |
