summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/Sources/FS
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 08:51:21 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-24 08:54:22 +0200
commit4185fcc698e237225902646736c6b23f6b5e54be (patch)
tree7b0fc0bb58cb20c61e676b13e3e0f7fd52c73a56 /dev/ZKA/Sources/FS
parentb31d81cd939ed3e8bb5fade029b32876e71ed54c (diff)
[IMP+REFACTORS] See below.
+ Add SysChk driver instead of BootScr. + Working on AHCI driver, did progress on detection, need to find out why the signature are set to zero. + Refactor PE loader structures. Add BecomeBusMaster call when probing AHCI disk. + Alongside some other modifications. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources/FS')
-rw-r--r--dev/ZKA/Sources/FS/NewFS.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev/ZKA/Sources/FS/NewFS.cxx b/dev/ZKA/Sources/FS/NewFS.cxx
index 36e0755e..8f9ef8ef 100644
--- a/dev/ZKA/Sources/FS/NewFS.cxx
+++ b/dev/ZKA/Sources/FS/NewFS.cxx
@@ -486,13 +486,15 @@ bool NewFSParser::Format(_Input _Output DriveTrait* drive, _Input const Lba endL
BOOT_BLOCK_STRUCT* epmBoot = (BOOT_BLOCK_STRUCT*)bufEpmHdr;
+ // EPM header.
+
constexpr auto cFsName = "NewFS";
constexpr auto cBlockName = "ZKA:";
rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(cFsName)), epmBoot->Fs, rt_string_len(cFsName));
epmBoot->FsVersion = kNewFSVersionInteger;
- epmBoot->LbaStart = 0;
+ epmBoot->LbaStart = start;
epmBoot->SectorSz = kNewFSSectorSz;
rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(cBlockName)), epmBoot->Name, rt_string_len(cBlockName));