From cddf1926591707121a3c1302a5ef7f5abd030d7e Mon Sep 17 00:00:00 2001 From: Amlal Date: Sat, 26 Apr 2025 11:12:44 +0200 Subject: dev, kernel: add kernel on when the traversal hits 0 (it should never happen) Signed-off-by: Amlal --- dev/boot/BootKit/BootKit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/boot/BootKit/BootKit.h') 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::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; -- cgit v1.2.3