android_kernel_xiaomi_sm8350/arch/sh
Paul Mundt 336f1d3268 sh: Fix up restorer in debug_trap exception return path.
There are a few different types of debug trap exceptions, though now
that they are all going through a special jump table, the restorer needs
to be unified as well.

Presently this is falling through the ret_from_fork path, which more or
less does the right thing on SH-3/4 whilst being completely unsuitable on
MMU-less targets.

Ultimately what we want here is a branch through the platform's
restore_all directly, without worrying about the retval being clobbered.
We can accomplish that through a branch to __restore_all directly, so
switch it so we come back from the jump table and branch to the restorer.

This fixes up a recursion in the nommu WARN_ON() path, as well as some
other userspace nastiness where said recursion caused serious stack
corruption.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-05-19 19:39:33 +09:00
..
boards sh: update smc91x platform data for se7206. 2008-05-09 14:13:17 +09:00
boot sh: remove -traditional. 2008-05-08 19:51:46 +09:00
cchips sh: Kill off more dead symbols. 2008-02-14 14:22:12 +09:00
configs sh: Add support for Solution Engine SH7721 board 2008-04-18 09:50:02 -07:00
drivers iomap: fix 64 bits resources on 32 bits 2008-04-29 08:06:02 -07:00
kernel sh: Fix up restorer in debug_trap exception return path. 2008-05-19 19:39:33 +09:00
lib sh: Fix up optimized SH-4 memcpy on big endian. 2008-05-16 14:55:07 +09:00
lib64 sh64: Fix up compile warning in event tracer. 2008-05-08 19:51:37 +09:00
math-emu
mm sh: add memory resources to /proc/iomem 2008-05-08 19:51:51 +09:00
oprofile
tools sh: remove the broken SH_MPC1211 support 2008-05-08 19:51:39 +09:00
Kconfig sh: remove the broken SH_MPC1211 support 2008-05-08 19:51:39 +09:00
Kconfig.cpu sh: Disable big endian for SH-5. 2008-02-14 14:22:10 +09:00
Kconfig.debug sh: sh-bios depends on SUPERH32. 2008-05-08 19:51:35 +09:00
Makefile sh: remove the broken SH_MPC1211 support 2008-05-08 19:51:39 +09:00