projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: add initial infrastructure for Broadcom MIPS SoCs
[oweals/u-boot.git]
/
arch
/
mips
/
cpu
/
start.S
diff --git
a/arch/mips/cpu/start.S
b/arch/mips/cpu/start.S
index a6b7a04757d0d594c8472f6062d41c44b82c6cfb..d01ee9f9bddd3095ffcf754dcc9e6176aacf33ef 100644
(file)
--- a/
arch/mips/cpu/start.S
+++ b/
arch/mips/cpu/start.S
@@
-151,8
+151,13
@@
reset:
mfc0 t0, CP0_GLOBALNUMBER
#endif
+#ifdef CONFIG_ARCH_BMIPS
+1: mfc0 t0, CP0_DIAGNOSTIC, 3
+ and t0, t0, (1 << 31)
+#else
1: mfc0 t0, CP0_EBASE
and t0, t0, EBASE_CPUNUM
+#endif
/* Hang if this isn't the first CPU in the system */
2: beqz t0, 4f