Commit bb39093
committed
esrt: fix ESRT GUID for EFI device
The EFI GUID in FreeBSD is layouted as following
typedef struct efi_guid {
uint32_t Data1;
uint16_t Data2;
uint16_t Data3;
uint8_t Data4[8];
} efi_guid_t;
Which means the Data1, Data2, Data3 should follows the little endian
rule as the MSB should be in the right side.
Also, the table_len in the ioctl argument of EFI_GET_TABLE should be
follow the uuid structure. Fix it by reorder it.
Sponsored By: FreeBSD Foundation
Sponsored By: Framework Laptop Inc.1 parent a879e74 commit bb39093
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | 509 | | |
| 510 | + | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
0 commit comments