summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Kuivenhoven <bemk@redhat.com>2013-10-08 11:17:12 +0200
committerBart Kuivenhoven <bemk@redhat.com>2013-10-08 11:17:12 +0200
commit8396d3b75b552a878a2cc57cc774bca06589773f (patch)
tree55c195ab10a341db42629ded890e57a026dd0499
parentff2ec6a148eab85a37875051441cf4319d962ea7 (diff)
downloadgnu-efi-3.0-8396d3b75b552a878a2cc57cc774bca06589773f.tar.gz
gnu-efi-3.0-8396d3b75b552a878a2cc57cc774bca06589773f.tar.xz
gnu-efi-3.0-8396d3b75b552a878a2cc57cc774bca06589773f.zip
aarch64: Fix warnings
After making sure the code compiles for the architecture the next logical step is to got through all the warnings, and fix those. This commit takes away all the low hanging fruit. Signed-off-by: Bart Kuivenhoven <bemk@redhat.com>
-rw-r--r--gnu-efi-3.0/inc/aarch64/efibind.h16
-rw-r--r--gnu-efi-3.0/inc/aarch64/efilibplat.h10
-rw-r--r--gnu-efi-3.0/lib/aarch64/initplat.c12
3 files changed, 34 insertions, 4 deletions
diff --git a/gnu-efi-3.0/inc/aarch64/efibind.h b/gnu-efi-3.0/inc/aarch64/efibind.h
index ceabbf6..ac0c41c 100644
--- a/gnu-efi-3.0/inc/aarch64/efibind.h
+++ b/gnu-efi-3.0/inc/aarch64/efibind.h
@@ -5,11 +5,13 @@
*
*/
+#if 0
#warning "The port for this architecture has been done quickly and \
comes with no guarantee that the types will be of correct size or \
value. If you are able to help in resolving this situation, please do \
otherwise, your patience is kindly requested as we are working on \
resolving these issues."
+#endif
#if defined(__GNUC__)
/* These bunch of typedefs are unchecked, might be wrong, I don't know yet */
@@ -76,3 +78,17 @@ typedef uint64_t UINTN;
/* Ehrm .... yeah ... almost certainly wrong, but have to dig into the specs to
* be sure */
#define EFIERR(a) (-a)
+
+/*
+ * As far as I know, this is right ... */
+#define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__)
+
+#define BREAKPOINT() while (TRUE)
+
+//
+// Define macros to create data structure signatures.
+//
+
+#define EFI_SIGNATURE_16(A,B) ((A) | (B<<8))
+#define EFI_SIGNATURE_32(A,B,C,D) (EFI_SIGNATURE_16(A,B) | (EFI_SIGNATURE_16(C,D) << 16))
+#define EFI_SIGNATURE_64(A,B,C,D,E,F,G,H) (EFI_SIGNATURE_32(A,B,C,D) | ((UINT64)(EFI_SIGNATURE_32(E,F,G,H)) << 32))
diff --git a/gnu-efi-3.0/inc/aarch64/efilibplat.h b/gnu-efi-3.0/inc/aarch64/efilibplat.h
index b02bb05..0608069 100644
--- a/gnu-efi-3.0/inc/aarch64/efilibplat.h
+++ b/gnu-efi-3.0/inc/aarch64/efilibplat.h
@@ -1,7 +1,9 @@
/**
- * Stub to make the build system happy!
+ * (c) Bart Kuivenhoven <bemk@redhat.com> - Red Hat - 2013
*/
-/*
- * TODO: Port this file
- */
+VOID
+InitializeLibPlatform (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
+ );
diff --git a/gnu-efi-3.0/lib/aarch64/initplat.c b/gnu-efi-3.0/lib/aarch64/initplat.c
index 122a32d..daee198 100644
--- a/gnu-efi-3.0/lib/aarch64/initplat.c
+++ b/gnu-efi-3.0/lib/aarch64/initplat.c
@@ -3,3 +3,15 @@
/*
* TODO: Port this file
*/
+
+
+#include "lib.h"
+
+VOID
+InitializeLibPlatform (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
+ )
+
+{
+}