]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xtensa: make fast_unaligned store restartable
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 2 Aug 2014 20:42:38 +0000 (00:42 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 14 Aug 2014 07:59:28 +0000 (11:59 +0400)
commite9500dd852ca6ede346500010545975bf10244dc
treea7689d7b6db4a29d69479c829004bc9a70423c59
parentc3ef1f4d379cbc79daf80ffb8d43c611da090b82
xtensa: make fast_unaligned store restartable

fast_unaligned may encounter DTLB miss or SEGFAULT during the store
emulation. Don't update epc1 and lcount until after the store emulation
is complete, so that the faulting store instruction could be replayed.
Remove duplicate code handling zero overhead loops and calculate new
epc1 and lcount in one place.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/align.S