Commit c3441edd authored by Vineet Gupta's avatar Vineet Gupta

ARC: [SMP] General Fixes

-Pass the expected arg to non-boot park'ing routine
 (It worked so far because existing SMP backends don't use the arg)

-CONFIG_DEBUG_PREEMPT warning
parent 6041003a
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
.globl stext .globl stext
stext: stext:
;------------------------------------------------------------------- ;-------------------------------------------------------------------
; Don't clobber r0-r4 yet. It might have bootloader provided info ; Don't clobber r0-r2 yet. It might have bootloader provided info
;------------------------------------------------------------------- ;-------------------------------------------------------------------
sr @_int_vec_base_lds, [AUX_INTR_VEC_BASE] sr @_int_vec_base_lds, [AUX_INTR_VEC_BASE]
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
; Only Boot (Master) proceeds. Others wait in platform dependent way ; Ensure Boot (Master) proceeds. Others wait in platform dependent way
; IDENTITY Reg [ 3 2 1 0 ] ; IDENTITY Reg [ 3 2 1 0 ]
; (cpu-id) ^^^ => Zero for UP ARC700 ; (cpu-id) ^^^ => Zero for UP ARC700
; => #Core-ID if SMP (Master 0) ; => #Core-ID if SMP (Master 0)
...@@ -39,7 +39,8 @@ stext: ...@@ -39,7 +39,8 @@ stext:
; need to make sure only boot cpu takes this path. ; need to make sure only boot cpu takes this path.
GET_CPU_ID r5 GET_CPU_ID r5
cmp r5, 0 cmp r5, 0
jnz arc_platform_smp_wait_to_boot mov.ne r0, r5
jne arc_platform_smp_wait_to_boot
#endif #endif
; Clear BSS before updating any globals ; Clear BSS before updating any globals
; XXX: use ZOL here ; XXX: use ZOL here
......
...@@ -100,10 +100,9 @@ ...@@ -100,10 +100,9 @@
#define DC_CTRL_INV_MODE_FLUSH 0x40 #define DC_CTRL_INV_MODE_FLUSH 0x40
#define DC_CTRL_FLUSH_STATUS 0x100 #define DC_CTRL_FLUSH_STATUS 0x100
char *arc_cache_mumbojumbo(int cpu_id, char *buf, int len) char *arc_cache_mumbojumbo(int c, char *buf, int len)
{ {
int n = 0; int n = 0;
unsigned int c = smp_processor_id();
#define PR_CACHE(p, enb, str) \ #define PR_CACHE(p, enb, str) \
{ \ { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment