aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2015-07-16 22:24:49 -0400
committerMax Filippov <jcmvbkbc@gmail.com>2015-08-17 00:33:37 -0400
commit98e298329e7b391293da5097817437292c842dc9 (patch)
tree665980a8f5b58b75bc4d8c5a6be9e665fec4aaca
parent77d6273e79e3a86552fcf10cdd31a69b46ed2ce6 (diff)
xtensa: don't touch EXC_TABLE_FIXUP in _switch_to
There's no way _switch_to can produce double exceptions now, don't enter/leave EXC_TABLE_FIXUP critical section. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r--arch/xtensa/kernel/entry.S4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S
index 3d9d221d2f0f..5703bc13a9ba 100644
--- a/arch/xtensa/kernel/entry.S
+++ b/arch/xtensa/kernel/entry.S
@@ -1868,9 +1868,7 @@ ENTRY(_switch_to)
1868 /* Disable ints while we manipulate the stack pointer. */ 1868 /* Disable ints while we manipulate the stack pointer. */
1869 1869
1870 rsil a14, LOCKLEVEL 1870 rsil a14, LOCKLEVEL
1871 rsr a3, excsave1
1872 rsync 1871 rsync
1873 s32i a3, a3, EXC_TABLE_FIXUP /* enter critical section */
1874 1872
1875 /* Switch CPENABLE */ 1873 /* Switch CPENABLE */
1876 1874
@@ -1891,9 +1889,7 @@ ENTRY(_switch_to)
1891 */ 1889 */
1892 1890
1893 rsr a3, excsave1 # exc_table 1891 rsr a3, excsave1 # exc_table
1894 movi a6, 0
1895 addi a7, a5, PT_REGS_OFFSET 1892 addi a7, a5, PT_REGS_OFFSET
1896 s32i a6, a3, EXC_TABLE_FIXUP
1897 s32i a7, a3, EXC_TABLE_KSTK 1893 s32i a7, a3, EXC_TABLE_KSTK
1898 1894
1899 /* restore context of the task 'next' */ 1895 /* restore context of the task 'next' */