diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-07 18:02:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-16 10:46:18 +0200 |
commit | 1dff7e414d78d5fd8ff62a57b67617aa1f73e532 (patch) | |
tree | 48c3360c0536ce6096a50b774ed8c7d121b46dc2 /common/partitions | |
parent | 3475ba2a1da1358697297a3cf9337eed10b69695 (diff) | |
download | barebox-1dff7e414d78d5fd8ff62a57b67617aa1f73e532.tar.gz barebox-1dff7e414d78d5fd8ff62a57b67617aa1f73e532.tar.xz |
Add initial EFI architecture support
This adds support for running barebox in an EFI environment
on X86 PC hardware.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions')
-rw-r--r-- | common/partitions/efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/partitions/efi.c b/common/partitions/efi.c index ee1326e622..dcb95414f6 100644 --- a/common/partitions/efi.c +++ b/common/partitions/efi.c @@ -232,7 +232,7 @@ static int is_gpt_valid(struct block_device *blk, u64 lba, static inline int is_pte_valid(const gpt_entry *pte, const u64 lastlba) { - if ((!efi_guidcmp(pte->partition_type_guid, NULL_GUID)) || + if ((!efi_guidcmp(pte->partition_type_guid, EFI_NULL_GUID)) || le64_to_cpu(pte->starting_lba) > lastlba || le64_to_cpu(pte->ending_lba) > lastlba) return 0; |