From 235b7b65e13dadf92e228327b2e291495fb26d2a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 27 Feb 2018 16:01:09 -0800 Subject: [PATCH] Uncomment BPMP firmware copy in LP0 --- exosphere/src/lp0.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/exosphere/src/lp0.c b/exosphere/src/lp0.c index 397209ed1..b601a2a23 100644 --- a/exosphere/src/lp0.c +++ b/exosphere/src/lp0.c @@ -107,9 +107,8 @@ uint32_t cpu_suspend(uint64_t power_state, uint64_t entrypoint, uint64_t argumen /* TODO: Hold the BPMP in reset. */ uint8_t *lp0_entry_code = (uint8_t *)(LP0_ENTRY_GET_RAM_SEGMENT_ADDRESS(LP0_ENTRY_RAM_SEGMENT_ID_LP0_ENTRY_CODE)); - (void)(lp0_entry_code); - /* TODO: memcpy(lp0_entry_code, BPMP_FIRMWARE_ADDRESS, sizeof(BPMP_FIRMWARE)); */ - /* TODO: flush_dcache_range(lp0_entry_code, lp0_entry_code + sizeof(BPMP_FIRMWARE)); */ + memcpy(lp0_entry_code, bpmpfw_bin, bpmpfw_bin_size); + flush_dcache_range(lp0_entry_code, lp0_entry_code + bpmpfw_bin_size); /* TODO: Take the BPMP out of reset. */ /* Start executing BPMP firmware. */