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)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 25 Sep 2013 11:34:38 +0000 (12:34 +0100)
commit5fef3870c572a30f9def07c4ded69dc37a9cf5d9
tree08fc883ebc4a51e1dc9ff07ed46d0566d2600f3b
parent4a9f3a7c336a6b0ffeef2523bef93e67b0921163
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>
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/efi-stub-helper.c