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 | |
| 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')
| -rw-r--r-- | Boot/Sources/BootloaderRsrc.rsrc | 2 | ||||
| -rw-r--r-- | Boot/Sources/HEL/AMD64/BootATA.cxx | 3 | ||||
| -rw-r--r-- | Boot/Sources/HEL/AMD64/BootMain.cxx | 11 |
3 files changed, 10 insertions, 6 deletions
diff --git a/Boot/Sources/BootloaderRsrc.rsrc b/Boot/Sources/BootloaderRsrc.rsrc index 2d2f8a8f..8751672e 100644 --- a/Boot/Sources/BootloaderRsrc.rsrc +++ b/Boot/Sources/BootloaderRsrc.rsrc @@ -1,7 +1,5 @@ #include "../../Kernel/CompilerKit/Version.hxx" -1 ICON "../../Icons/default.ico" - 1 VERSIONINFO FILEVERSION 1,0,0,0 PRODUCTVERSION 1,0,0,0 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(); } |
