efi: Move unicode to ASCII conversion to shared function.
authorRoy Franz <roy.franz@linaro.org>
Sun, 22 Sep 2013 22:45:33 +0000 (15:45 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 20:17:34 +0000 (21:17 +0100)
commit7f71039462ef8a08a355b948124d8147ea344151
tree300cbaa4eb14bc11db5ba16d9dfd6060e49355b4
parent02e9cbd96c39d86a4c7eb39596945bb48ef461fa
efi: Move unicode to ASCII conversion to shared function.

Move the open-coded conversion to a shared function for
use by all architectures.  Change the allocation to prefer
a high address for ARM, as this is required to avoid conflicts
with reserved regions in low memory.  We don't know the specifics
of these regions until after we process the command line and
device tree.

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