From dcf21d1e3a975b715c48a3f841078b33a2717a9c Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 23 Apr 2025 09:27:51 +0200 Subject: dev, kernel, boot: disk i/o and scheduler warning fixes. Signed-off-by: Amlal El Mahrouss --- dev/boot/BootKit/BootKit.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dev/boot/BootKit/BootKit.h') diff --git a/dev/boot/BootKit/BootKit.h b/dev/boot/BootKit/BootKit.h index 53e32d11..6299e27b 100644 --- a/dev/boot/BootKit/BootKit.h +++ b/dev/boot/BootKit/BootKit.h @@ -429,7 +429,7 @@ namespace Boot SetMem(gpt_part.Reserved2, 0, kSectorAlignGPT_PartTbl); fDiskDev.Leak().mBase = kGPTPartitionTableLBA; // always always resies at zero block. - fDiskDev.Leak().mSize = sizeof(EPM_PART_BLOCK); + fDiskDev.Leak().mSize = sizeof(GPT_PARTITION_TABLE); fDiskDev.Write((Char*)&gpt_part, sizeof(GPT_PARTITION_TABLE)); @@ -450,10 +450,6 @@ namespace Boot SetMem(gpt_part_entry.PartitionTypeGUID.Data4, 0, 8); - fDiskDev.Leak().mBase = kGPTPartitionTableLBA + sizeof(GPT_PARTITION_TABLE); - fDiskDev.Leak().mSize = sizeof(GPT_PARTITION_ENTRY); - fDiskDev.Write((Char*)&gpt_part_entry, sizeof(GPT_PARTITION_ENTRY)); - EPM_PART_BLOCK epm_boot{}; const auto kFsName = "NeFS"; -- cgit v1.2.3