]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - include/efi.h
karo: tx6: prevent DTB from either being out of reach of kernel or overwritten during...
[karo-tx-uboot.git] / include / efi.h
index f0097017b3ccac06972c4deb3eb98d58b01ed5d4..fcafda0b0bf5fed0ac9adfce5dd9d8dfb7eb080c 100644 (file)
 #include <linux/string.h>
 #include <linux/types.h>
 
+#ifdef CONFIG_EFI_STUB_64BIT
+/* EFI uses the Microsoft ABI which is not the default for GCC */
+#define EFIAPI __attribute__((ms_abi))
+#else
+#define EFIAPI
+#endif
+
 struct efi_device_path;
 
 #define EFI_SUCCESS            0
@@ -268,11 +275,15 @@ struct efi_priv {
 /* Base address of the EFI image */
 extern char image_base[];
 
+/* Start and end of U-Boot image (for payload) */
+extern char _binary_u_boot_dtb_bin_start[], _binary_u_boot_dtb_bin_end[];
+
 /**
  * efi_get_sys_table() - Get access to the main EFI system table
  *
  * @return pointer to EFI system table
  */
+
 struct efi_system_table *efi_get_sys_table(void);
 
 /**