Skip to content

Commit

Permalink
efi: pass correct size to SetVirtualAddressMap
Browse files Browse the repository at this point in the history
As per specification, it wants size in bytes, not amount of members.

Signed-off-by: Peter Shkenev <[email protected]>
  • Loading branch information
petershh authored and heatd committed Dec 1, 2024
1 parent 2be7203 commit 3bd3ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/drivers/firmware/efi/efi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void efi_init(EFI_SYSTEM_TABLE *system_table, EFI_MEMORY_DESCRIPTOR *descriptors
efi_guard g;

EFI_STATUS st = g.system_table()->RuntimeServices->SetVirtualAddressMap(
nr_maps, descriptor_size, descriptor_version, map);
nr_maps * descriptor_size, descriptor_size, descriptor_version, map);
assert(st == EFI_SUCCESS);
}

Expand Down

0 comments on commit 3bd3ab9

Please sign in to comment.