]> git.karo-electronics.de Git - linux-beck.git/commitdiff
xtensa: don't touch EXC_TABLE_FIXUP in _switch_to
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 17 Jul 2015 02:24:49 +0000 (05:24 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 17 Aug 2015 04:33:37 +0000 (07:33 +0300)
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>
arch/xtensa/kernel/entry.S

index 3d9d221d2f0f774660426a1b1c412dc903d2bc38..5703bc13a9ba39e0a1536d2aec2d0dc6222e7121 100644 (file)
@@ -1868,9 +1868,7 @@ ENTRY(_switch_to)
        /* Disable ints while we manipulate the stack pointer. */
 
        rsil    a14, LOCKLEVEL
-       rsr     a3, excsave1
        rsync
-       s32i    a3, a3, EXC_TABLE_FIXUP /* enter critical section */
 
        /* Switch CPENABLE */
 
@@ -1891,9 +1889,7 @@ ENTRY(_switch_to)
         */
 
        rsr     a3, excsave1            # exc_table
-       movi    a6, 0
        addi    a7, a5, PT_REGS_OFFSET
-       s32i    a6, a3, EXC_TABLE_FIXUP
        s32i    a7, a3, EXC_TABLE_KSTK
 
        /* restore context of the task 'next' */