summaryrefslogtreecommitdiffhomepage
path: root/dev/Boot/BootKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-11 13:52:54 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-11 14:20:24 +0100
commit6c7d60a690aa3358b3240ebdfdf1feb62956d747 (patch)
tree26ea032a2beff8e4d5a5d3f96a59141f5aaec072 /dev/Boot/BootKit
parentd4211b210e3e63f69bc3b86555b563a323f8d865 (diff)
ADD: Fully implement final patent.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/BootKit')
-rw-r--r--dev/Boot/BootKit/BootKit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/Boot/BootKit/BootKit.h b/dev/Boot/BootKit/BootKit.h
index db21ba30..050d5929 100644
--- a/dev/Boot/BootKit/BootKit.h
+++ b/dev/Boot/BootKit/BootKit.h
@@ -345,7 +345,7 @@ namespace Boot
part.Version = kNeFSVersionInteger;
part.CatalogCount = blob_cnt;
part.Kind = kNeFSHardDrive;
- part.SectorSize = sizeof(NFS_ROOT_PARTITION_BLOCK);
+ part.SectorSize = 512;
part.FreeCatalog = fDiskDev.GetSectorsCount() / sizeof(NFS_CATALOG_STRUCT);
part.SectorCount = fDiskDev.GetSectorsCount();
part.FreeSectors = fDiskDev.GetSectorsCount();
@@ -377,6 +377,7 @@ namespace Boot
epm_boot.FsVersion = kNeFSVersionInteger;
epm_boot.LbaStart = kNeFSRootCatalogStartAddress;
+ epm_boot.LbaEnd = fDiskDev.GetDiskSize();
epm_boot.SectorSz = part.SectorSize;
epm_boot.Kind = kEPMZkaOS;
epm_boot.NumBlocks = part.CatalogCount;