thermosphere: fix bugs:

- missing barriers after setting elr/spsr
- .text.start* matching .text.startup (which contains main, thanks @fincs)
This commit is contained in:
TuxSH committed 2020-02-04 19:12:18 +00:00
1 parent b124c4383e
commit acae18365b
4 files changed
+23 -6

No files matched your search

+1 -1
View File
@@ -362,7 +362,7 @@ static void package2_fixup_thermosphere_and_entrypoint(package2_header_t *packag
}
/* Swap kernel entrypoint with Thermosphère */
*(uint32_t *)(dst + 4) = DRAM_BASE_PHYSICAL + package2->metadata.entrypoint;
*(uint64_t *)(dst + 8) = DRAM_BASE_PHYSICAL + package2->metadata.entrypoint;
package2->metadata.entrypoint = 0;
}