[arch] relocate binary to proper physical location at boot, add arch_chain_load

-in arm start.S, calculate and move the current binary to the proper physical
location before enabling the mmu.
-add arch_chain_load which does the necessary translations from virtual to
physical, tries to gracefully shut the system down, and branches into the loaded binary.
This commit is contained in:
Travis Geiselbrecht
2014-08-12 16:10:16 -07:00
parent 91e3efde16
commit ec69757a59
8 changed files with 149 additions and 7 deletions

View File

@@ -51,3 +51,9 @@ void arch_idle(void)
__asm__ volatile("wfi");
}
void arch_chain_load(void *entry)
{
PANIC_UNIMPLEMENTED;
}