Skip to content

Commit

Permalink
efi: stub: Move the use_uart assignment immediately after exit_boot_s…
Browse files Browse the repository at this point in the history
…ervices() call

The use_uart assignment should follow immediately after the call to
exit_boot_services(), in case we want some debug output after that.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
  • Loading branch information
lbmeng committed Jun 24, 2018
1 parent 5460fd0 commit 7c98ca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/efi/efi_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,14 @@ efi_status_t EFIAPI efi_main(efi_handle_t image,
}
}

/* The EFI UART won't work now, switch to a debug one */
use_uart = true;

map.version = version;
map.desc_size = desc_size;
add_entry_addr(priv, EFIET_MEMORY_MAP, &map, sizeof(map), desc, size);
add_entry_addr(priv, EFIET_END, NULL, 0, 0, 0);

/* The EFI UART won't work now, switch to a debug one */
use_uart = true;

memcpy((void *)CONFIG_SYS_TEXT_BASE, _binary_u_boot_bin_start,
(ulong)_binary_u_boot_bin_end -
(ulong)_binary_u_boot_bin_start);
Expand Down

0 comments on commit 7c98ca1

Please sign in to comment.