Skip to content
Snippets Groups Projects
Commit b5eba3fa authored by Mike Frysinger's avatar Mike Frysinger
Browse files

Blackfin: clarify relocation comment during init


People often ask questions about the init process and when things go
from flash to relocated base, so clarify the comments a bit.

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 95433f6d
Branches
Tags
No related merge requests found
...@@ -125,9 +125,11 @@ ENTRY(_start) ...@@ -125,9 +125,11 @@ ENTRY(_start)
*/ */
r6 = 1 (x); r6 = 1 (x);
/* Relocate from wherever are (FLASH/RAM/etc...) to the hardcoded /* Relocate from wherever we are (FLASH/RAM/etc...) to the hardcoded
* monitor location in the end of RAM. We know that memcpy() only * monitor location in the end of RAM. We know that memcpy() only
* uses registers, so it is safe to call here. * uses registers, so it is safe to call here. Note that this only
* copies to external memory ... we do not start executing out of
* it yet (see "lower to 15" below).
*/ */
serial_early_puts("Relocate"); serial_early_puts("Relocate");
call _get_pc; call _get_pc;
...@@ -172,7 +174,9 @@ ENTRY(_start) ...@@ -172,7 +174,9 @@ ENTRY(_start)
* setting the 15 handler to ".Lenable_nested", raising the 15 * setting the 15 handler to ".Lenable_nested", raising the 15
* interrupt, and then returning from the highest interrupt * interrupt, and then returning from the highest interrupt
* level to the dummy "jump" until the interrupt controller * level to the dummy "jump" until the interrupt controller
* services the pending 15 interrupt. * services the pending 15 interrupt. If executing out of
* flash, these steps also changes the code flow from flash
* to external memory.
*/ */
serial_early_puts("Lower to 15"); serial_early_puts("Lower to 15");
r0 = r7; r0 = r7;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment