efi: Add system table pointer argument to shared functions.
authorRoy Franz <roy.franz@linaro.org>
Sun, 22 Sep 2013 22:45:28 +0000 (15:45 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 20:16:52 +0000 (21:16 +0100)
commit2012f9b2ab2e4267b5051e9f0ddcedba409ee552
treee85f1239259a21176783ca13fa403dbc077b9367
parentdf8c3f2451b31e9e0cb8205a13caee2463ee8d74
efi: Add system table pointer argument to shared functions.

Add system table pointer argument to shared EFI stub related functions
so they no longer use a global system table pointer as they did when part
of eboot.c.  For the ARM EFI stub this allows us to avoid global
variables completely and thereby not have to deal with GOT fixups.
Not having the EFI stub fixup its GOT, which is shared with the
decompressor, simplifies the relocating of the zImage to a
bootable address.

Signed-off-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit 876dc36aceb1682cb01426f507f369aec4f68c76)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/efi-stub-helper.c