aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gregory <graeme.gregory@linaro.org>2013-09-06 10:27:03 +0100
committerGraeme Gregory <graeme.gregory@linaro.org>2013-09-06 10:27:03 +0100
commitc0918b457e6cb08bde0bc93ac20d02b53afe30e9 (patch)
tree2e9ae8926a63cfd54477d66f3dc0a426f44fac8f
parente74f8d8bbd2d1256d0a154b596e47a157ea283d5 (diff)
efi-stub: integration fixesleg-20130906.0
Integration fixes for the efi stub implementation. Signed-off-by: Leif Lindholk <leif.lindhold@linaro.org> Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r--arch/arm/boot/compressed/efi-stub.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/arm/boot/compressed/efi-stub.c b/arch/arm/boot/compressed/efi-stub.c
index 87584e4262ad..e639c3b1b154 100644
--- a/arch/arm/boot/compressed/efi-stub.c
+++ b/arch/arm/boot/compressed/efi-stub.c
@@ -209,30 +209,26 @@ static int update_fdt(efi_system_table_t *sys_table, void *orig_fdt, void *fdt,
/* Add FDT entries for EFI runtime services in chosen node. */
node = fdt_subnode_offset(fdt, 0, "chosen");
fdt_val = cpu_to_fdt32((unsigned long)sys_table);
- status = fdt_setprop(fdt, node, "efi-system-table",
+ status = fdt_setprop(fdt, node, "linux,efi-system-table",
&fdt_val, sizeof(fdt_val));
if (status)
goto fdt_set_fail;
fdt_val = cpu_to_fdt32(desc_size);
- status = fdt_setprop(fdt, node, "efi-mmap-desc-size",
+ status = fdt_setprop(fdt, node, "linux,efi-mmap-desc-size",
&fdt_val, sizeof(fdt_val));
if (status)
goto fdt_set_fail;
fdt_val = cpu_to_fdt32(map_size);
- status = fdt_setprop(fdt, node, "efi-runtime-mmap-size",
+ status = fdt_setprop(fdt, node, "linux,efi-runtime-mmap-size",
&fdt_val, sizeof(fdt_val));
if (status)
goto fdt_set_fail;
- fdt_val = cpu_to_fdt32((unsigned long)memory_map);
- status = fdt_setprop(fdt, node, "efi-runtime-mmap",
- &fdt_val, sizeof(fdt_val));
-
/* Stuff the whole memory map into FDT */
- status = fdt_setprop(fdt, node, "efi-runtime-mmap-blob",
- memory_map, sizeof(map_size));
+ status = fdt_setprop(fdt, node, "linux,efi-mmap",
+ memory_map, map_size);
if (status)
goto fdt_set_fail;
@@ -388,7 +384,7 @@ int efi_entry(void *handle, efi_system_table_t *sys_table,
/* Estimate size of new FDT, and allocate memory for it. We
* will allocate a bigger buffer if this ends up being too
* small, so a rough guess is OK here.*/
- new_fdt_size = fdt_size + cmdline_size + 0x200;
+ new_fdt_size = fdt_size + cmdline_size + 0x200 + 0x1000;
while (1) {
status = efi_high_alloc(sys_table, new_fdt_size, 0,
&new_fdt_addr,