summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/BootKit
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-27 23:31:27 +0200
committerAmlal <amlal@nekernel.org>2025-04-27 23:31:27 +0200
commit8a7396493c3effb356d2dc4484b993b4698bc422 (patch)
tree1726a7342eaf1ae3adaefbfe019e20cff9b9ab09 /dev/boot/BootKit
parent11dd858e1d9da71a182bc707ca3a481dafbccbe4 (diff)
dev, kernel: HeFS had to be redesigned to be less problematic with hard-drives.
why? the struct were way too big to fit wihin a sector. Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/BootKit')
-rw-r--r--dev/boot/BootKit/BootKit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/boot/BootKit/BootKit.h b/dev/boot/BootKit/BootKit.h
index 7a25e2a5..d10ce0de 100644
--- a/dev/boot/BootKit/BootKit.h
+++ b/dev/boot/BootKit/BootKit.h
@@ -262,7 +262,7 @@ inline Boolean BDiskFormatFactory<BootDev>::Format(const Char* part_name) {
const auto kBlockName = "OS (EPM)";
epm_boot.FsVersion = 0;
- epm_boot.LbaStart = 1024;
+ epm_boot.LbaStart = sizeof(EPM_PART_BLOCK);
epm_boot.LbaEnd = fDiskDev.GetDiskSize() - 1;
epm_boot.SectorSz = BootDev::kSectorSize;
epm_boot.Kind = kEPMNeKernel;