diff options
author | Tom Rini <trini@konsulko.com> | 2017-04-04 09:20:03 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-04 09:20:03 -0400 |
commit | 4951e9420e179977f49549e25d8fd6437b37da72 (patch) | |
tree | e7498383776b712aa8fdefb54309ae2ffe08d170 /arch | |
parent | 5f9518b2e1126b6413bab32a8e3f507e0a89f857 (diff) | |
parent | 6cba327bd96f90818a8beede51405228c54a5251 (diff) |
Merge git://git.denx.de/u-boot-arc
In this patch-set we add support of new AXS103 firmware as well as
troubleshoot unexpected execution by multiple cores simultaneously.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arc/lib/start.S | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arc/lib/start.S b/arch/arc/lib/start.S index 90ee7e0fe4..b2ba768309 100644 --- a/arch/arc/lib/start.S +++ b/arch/arc/lib/start.S @@ -10,6 +10,22 @@ #include <asm/arcregs.h> ENTRY(_start) + ; Non-masters will be halted immediately, they might be kicked later + ; by platform code right before passing control to the Linux kernel + ; in bootm.c:boot_jump_linux(). + lr r5, [identity] + lsr r5, r5, 8 + bmsk r5, r5, 7 + cmp r5, 0 + mov.nz r0, r5 + bz .Lmaster_proceed + flag 1 + nop + nop + nop + +.Lmaster_proceed: + /* Setup interrupt vector base that matches "__text_start" */ sr __ivt_start, [ARC_AUX_INTR_VEC_BASE] |