linux/arch/microblaze
Al Viro 14203e19cb microblaze: fix the horror with restarts of sigreturn()
solution a-la arm one - pick a callee-saved register (r30), set it
non-zero when entering a syscall, have sigreturn wrapper zero it out
and pass the value in it to do_notify_resume() as "in_syscall" (actually,
"restarts allowed") argument.

Note that we don't give a damn about ret_from_fork() - return value
is not restart-worthy anyway.

Possible remaining bug: on !MMU we still have _debug_exception()
restartable.  If it hits with -ERESTART_... accidentally in r3, fun happens.
MMU does _not_ have _debug_exception() restartable.  If that's decided to
be a bug (as I strongly suspect it to be), we'll just need to replace
setting r30 to 1 with setting r30 to 0 in !MMU _debug_exception().
Up to microblaze maintainers...

[folded a fix from Michal]

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-03 18:16:02 -05:00
..
boot microblaze: use new common dtc rule 2012-12-03 17:17:50 -06:00
configs microblaze: Update microblaze defconfigs 2013-01-04 09:52:36 +01:00
include microblaze: Add finit_module syscall 2013-01-03 14:21:57 +01:00
kernel microblaze: fix the horror with restarts of sigreturn() 2013-02-03 18:16:02 -05:00
lib microblaze: lib: Add lib function declarations 2012-12-13 18:15:38 +01:00
mm readahead: fault retry breaks mmap file read random detection 2012-10-09 16:22:47 +09:00
oprofile microblaze: Core oprofile configs and hooks 2009-12-14 08:45:07 +01:00
pci Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze 2013-01-07 07:39:32 -08:00
platform Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig microblaze: switch to generic sigaltstack 2013-02-03 18:16:01 -05:00
Kconfig.debug microblaze: remove obsolete DEBUG_BOOTMEM 2011-01-10 09:29:51 +01:00
Makefile microblaze: use new common dtc rule 2012-12-03 17:17:50 -06:00