Skip to content

Commit a28bbf1

Browse files
committed
Only load first sector of partition
1 parent a253b3f commit a28bbf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bios/first_stage/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub extern "C" fn first_stage(disk_number: u16) {
3737
let dap = dap::DiskAddressPacket::from_lba(
3838
partition_buf,
3939
partition.logical_block_address.into(),
40-
partition.sector_count.try_into().unwrap_or_fail(b'b'),
40+
1, // partition.sector_count.try_into().unwrap_or_fail(b'b'),
4141
);
4242
unsafe {
4343
dap.perform_load(disk_number);

0 commit comments

Comments
 (0)