]> git.sur5r.net Git - u-boot/blobdiff - include/part_efi.h
Merge branch 'master' of git://git.denx.de/u-boot-ubi
[u-boot] / include / part_efi.h
index 6065c571f3fb83162ab96ca407e84ca9ec74c221..8525770445a9d782ab7b74c762b4e9e200f27482 100644 (file)
@@ -20,6 +20,7 @@
 #include <efi.h>
 
 #define MSDOS_MBR_SIGNATURE 0xAA55
+#define MSDOS_MBR_BOOT_CODE_SIZE 440
 #define EFI_PMBR_OSTYPE_EFI 0xEF
 #define EFI_PMBR_OSTYPE_EFI_GPT 0xEE
 
@@ -111,7 +112,7 @@ typedef struct _gpt_entry {
 } __packed gpt_entry;
 
 typedef struct _legacy_mbr {
-       u8 boot_code[440];
+       u8 boot_code[MSDOS_MBR_BOOT_CODE_SIZE];
        __le32 unique_mbr_signature;
        __le16 unknown;
        struct partition partition_record[4];