瀏覽代碼

[efi] Synchronise EFI header files

Now that the PACKED macro conflict is resolved, we can use an
unmodified import of the EFI header files (using
include/ipxe/efi/import.pl).

Synchronised to EDK2 SVN revision 10556.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 年之前
父節點
當前提交
ae5ce45afe
共有 2 個檔案被更改,包括 10 行新增7 行删除
  1. 10
    0
      src/include/ipxe/efi/Base.h
  2. 0
    7
      src/include/ipxe/efi/efi.h

+ 10
- 0
src/include/ipxe/efi/Base.h 查看文件

@@ -105,6 +105,16 @@ VERIFY_SIZE_OF (CHAR16, 2);
105 105
   #define ASM_FUNCTION_REMOVE_IF_UNREFERENCED
106 106
 #endif
107 107
 
108
+#ifdef __CC_ARM
109
+  //
110
+  // Older RVCT ARM compilers don't fully support #pragma pack and require __packed
111
+  // as a prefix for the structure.
112
+  //
113
+  #define PACKED  __packed
114
+#else
115
+  #define PACKED
116
+#endif
117
+
108 118
 ///
109 119
 /// 128 bit buffer containing a unique identifier value.
110 120
 /// Unless otherwise specified, aligned on a 64 bit boundary.

+ 0
- 7
src/include/ipxe/efi/efi.h 查看文件

@@ -19,13 +19,6 @@
19 19
  * header to reflect its new location within the iPXE tree.  It will
20 20
  * also tidy up the file by removing carriage return characters and
21 21
  * trailing whitespace.
22
- *
23
- *
24
- * At the time of writing, there are a few other modifications to
25
- * these headers that are present in my personal edk2 tree, that are
26
- * not yet committed back to the main edk2 repository.  These
27
- * modifications are fixes for compilation on case-dependent
28
- * filesystems, compilation under -mrtd and -mregparm=3, etc.
29 22
  */
30 23
 
31 24
 /* EFI headers rudely redefine NULL */

Loading…
取消
儲存