]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/blackfin/mach-common/entry.S
Blackfin arch: fix bug - kernel with SMP patch can not bootup
[linux-2.6.git] / arch / blackfin / mach-common / entry.S
index bde6dc4e2614d45e1d39bf6dfc27430a4952dab1..c6ae8442fc4ef306de2ea865136b36ae385fb298 100644 (file)
@@ -1539,14 +1539,24 @@ ENTRY(_sys_call_table)
        .endr
 END(_sys_call_table)
 
-_exception_stack:
-       .rept 1024
-       .long 0;
-       .endr
-_exception_stack_top:
-
 #if ANOMALY_05000261
 /* Used by the assembly entry point to work around an anomaly.  */
 _last_cplb_fault_retx:
        .long 0;
 #endif
+
+#ifdef CONFIG_EXCEPTION_L1_SCRATCH
+/* .section .l1.bss.scratch */
+.set _exception_stack_top, L1_SCRATCH_START + L1_SCRATCH_LENGTH
+#else
+#ifdef CONFIG_SYSCALL_TAB_L1
+.section .l1.bss
+#else
+.bss
+#endif
+_exception_stack:
+       .rept 1024
+       .long 0
+       .endr
+_exception_stack_top:
+#endif