x86, efi: Abstract x86 efi_early calls
authorMatt Fleming <matt.fleming@intel.com>
Sat, 22 Mar 2014 10:09:01 +0000 (10:09 +0000)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 20:23:59 +0000 (21:23 +0100)
commiteac39524c3e8648d35ea132feeab3b94d119231d
treea484cfaa074967191829aadc60a581dc2563777d
parent2df0137269c77f97f0c04410b07f58125a4e3149
x86, efi: Abstract x86 efi_early calls

The ARM EFI boot stub doesn't need to care about the efi_early
infrastructure that x86 requires in order to do mixed mode thunking. So
wrap everything up in an efi_call_early() macro.

This allows x86 to do the necessary indirection jumps to call whatever
firmware interface is necessary (native or mixed mode), but also allows
the ARM folks to mask the fact that they don't support relocation in the
boot stub and need to pass 'sys_table_arg' to every function.

[ hpa: there are no object code changes from this patch ]

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Link: http://lkml.kernel.org/r/20140326091011.GB2958@console-pimps.org
Cc: Roy Franz <roy.franz@linaro.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
(cherry picked from commit 204b0a1a4b92612c957a042df1a3be0e9cc79391)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/efi-stub-helper.c