Skip to content

Commit

Permalink
datasize needs to be 64-bits always when using fallback vars code.
Browse files Browse the repository at this point in the history
Right now it's "unsigned long" which means 32-bits on -m32 builds;
kernel will reject that, and rightly so.

Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Oct 10, 2014
1 parent 915c4bf commit a01d106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vars.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
typedef struct efi_variable_t {
uint16_t VariableName[1024/sizeof(uint16_t)];
efi_guid_t VendorGuid;
unsigned long DataSize;
uint64_t DataSize;
uint8_t Data[1024];
efi_status_t Status;
uint32_t Attributes;
Expand Down

0 comments on commit a01d106

Please sign in to comment.