path: root/efi/vesa.c
diff options
authorMatt Fleming <matt.fleming@intel.com>2013-03-22 13:33:51 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-03-22 13:57:54 +0000
commitbbc178dc9f7431779a8a4572a24e3c3aaf870d07 (patch)
treef006308813df5087976d8258366d6db16c253cee /efi/vesa.c
parent37d43cf9dd5dd2d2cef1e86aa651097473fd0b48 (diff)
efi: Fix build with gnu-efi >= 3.0s
For x86_64 versions of gnu-efi >= 3.0s GNU_EFI_USE_MS_ABI is enabled which turns on the Microsoft ABI, allowing the compiler to do all the work of interfacing with the EFI firmware instead of jumping through uefi_call_wrapper(). Add support to turn this on in the gnu-efi headers, otherwise we'll encounter undefined references to uefi_call_wrapper(). This addresses the simplest case assuming a distribution's gnu-efi was compiled with GNU_EFI_USE_MS_ABI. If you're compiling everything from source and you turn off GNU_EFI_USE_MS_ABI for gnu-efi, you'll also need to turn it off here. Cc: H. Peter Anvin <hpa@zytor.com> Cc: Nigel Croxon <nigel.croxon@hp.com> Cc: Peter Jones <pjones@redhat.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'efi/vesa.c')
1 files changed, 1 insertions, 3 deletions
diff --git a/efi/vesa.c b/efi/vesa.c
index e3e9e0f7..d259f60a 100644
--- a/efi/vesa.c
+++ b/efi/vesa.c
@@ -33,9 +33,7 @@
#include <sys/fpu.h>
#include <syslinux/video.h>
#include <dprintf.h>
-#include <efi.h>
-#include <efilib.h>
-#include <efistdarg.h>
+#include "efi.h"
/* We use cp865_8x16.psf as the standard font for EFI implementation
* the header file below contains raw data parsed from cp865_8x16.psf