From 9a0184dae5723488daf16c86ee8a3741cd70f894 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Sat, 10 Aug 2024 16:47:14 +0200 Subject: [IMP] Many fixes inside kernel DLL, fixing filesystem now. Signed-off-by: Amlal EL Mahrouss --- Boot/Sources/BootloaderRsrc.rsrc | 2 -- Boot/Sources/HEL/AMD64/BootATA.cxx | 3 --- Boot/Sources/HEL/AMD64/BootMain.cxx | 11 ++++++++++- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'Boot/Sources') 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::BFileDescriptor root; + root.fFileName[0] = kNewFSRoot[0]; + root.fFileName[1] = 0; + + root.fKind = kNewFSCatalogKindDir; + + checkPart.Format("NewOS (ZKA:)", &root, 1); + EFI::Stop(); } -- cgit v1.2.3