summaryrefslogtreecommitdiffhomepage
path: root/dev/boot/BootKit
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-26 11:12:44 +0200
committerAmlal <amlal@nekernel.org>2025-04-26 11:12:44 +0200
commitcddf1926591707121a3c1302a5ef7f5abd030d7e (patch)
tree642b94a4b55d53d3c3d3abca7c76e8291b96bd37 /dev/boot/BootKit
parent0af5f147b67140ebb7b561fdde273c5123c61df8 (diff)
dev, kernel: add kernel on when the traversal hits 0 (it should never happen)
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 2bf95696..03902363 100644
--- a/dev/boot/BootKit/BootKit.h
+++ b/dev/boot/BootKit/BootKit.h
@@ -297,7 +297,7 @@ inline Boolean BDiskFormatFactory<BootDev>::Format(const Char* part_name) {
epm_boot.FsVersion = kNeFSVersionInteger;
epm_boot.LbaStart = kNeFSRootCatalogStartAddress;
- epm_boot.LbaEnd = fDiskDev.GetDiskSize();
+ epm_boot.LbaEnd = fDiskDev.GetDiskSize() - 1;
epm_boot.SectorSz = BootDev::kSectorSize;
epm_boot.Kind = kEPMNeKernel;
epm_boot.NumBlocks = 1;