]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
microblaze: Add comment about reset location
authorMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:15:00 +0000 (14:15 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:15:00 +0000 (14:15 +0200)
Better to add comment to explain why reset vector points all the time to
origin U-Boot location.
If reset happens U-Boot should start from it's origin location.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/5ca6341b7487708247fe2948d7e496ea6f7c2e02.1655299267.git.michal.simek@amd.com
arch/microblaze/cpu/start.S

index db3998f545051e1b7ecd149bc0786a18cc36942a..9aa5fd099361b4114f757817765db700cd92e297 100644 (file)
@@ -144,6 +144,7 @@ __setup_exceptions:
        swi     r3, r4, 0x4     /* reset address - brai opcode */
 
        addik   r6, r0, _start
+       /* Intentionally keep reset vector back to origin u-boot location */
        sw      r6, r1, r0
        lhu     r7, r1, r10
        rsubi   r8, r10, 0x2