linux/arch/nios2/include/asm
Al Viro fd0c153daa nios2: add force_successful_syscall_return()
If we use the ancient SysV syscall ABI, we'd better have tell the
kernel how to claim that a negative return value is a success.
Use ->orig_r2 for that - it's inaccessible via ptrace, so it's
a fair game for changes and it's normally[*] non-negative on return
from syscall.  Set to -1; syscall is not going to be restart-worthy
by definition, so we won't interfere with that use either.

[*] the only exception is rt_sigreturn(), where we skip the entire
messing with r1/r2 anyway.

Fixes: 82ed08dd1b ("nios2: Exception handling")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
2022-08-15 11:25:32 -05:00
..
Kbuild
asm-macros.h
asm-offsets.h
cache.h
cacheflush.h Add linux/cacheflush.h 2021-11-17 10:36:15 -05:00
checksum.h
cpuinfo.h
delay.h
elf.h
entry.h nios2: page fault et.al. are *not* restartable syscalls... 2022-08-15 11:25:31 -05:00
io.h
irq.h
irqflags.h
kgdb.h
linkage.h
mmu.h
mmu_context.h
page.h
pgalloc.h
pgtable-bits.h
pgtable.h nios2: drop definition of PGD_ORDER 2022-07-17 17:14:43 -07:00
processor.h
ptrace.h nios2: add force_successful_syscall_return() 2022-08-15 11:25:32 -05:00
registers.h
setup.h
shmparam.h
string.h
switch_to.h
syscall.h
syscalls.h
thread_info.h uaccess: remove CONFIG_SET_FS 2022-02-25 09:36:06 +01:00
timex.h nios2: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
tlb.h
tlbflush.h
traps.h
uaccess.h uaccess: remove CONFIG_SET_FS 2022-02-25 09:36:06 +01:00
vmalloc.h