twx-linux/arch/tile/kernel
Chris Metcalf ba00376b0b arch/tile: extend syscall ABI to set r1 on return as well.
Until now, the tile architecture ABI for syscall return has just been
that r0 holds the return value, and an error is only signalled like it is
for kernel code, with a negative small number.

However, this means that in multiple places in userspace we end up writing
the same three-cycle idiom that tests for a small negative number for
error.  It seems cleaner to instead move that code into the kernel, and
set r1 to hold zero on success or errno on failure; previously, r1 was
just zeroed on return from the kernel (to avoid leaking kernel state).
This way a single conditional branch after the syscall is sufficient
to test for the failure case.  The number of cycles taken is the same,
but the error-checking code is in just one place, so total code size is
smaller, and random userspace syscall code is easier to understand.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2010-08-13 16:37:00 -04:00
..
asm-offsets.c
backtrace.c arch/tile: support backtracing on TILE-Gx 2010-08-13 08:40:57 -04:00
compat_signal.c arch/tile: Fix a couple of issues with the COMPAT code for TILE-Gx. 2010-08-13 08:32:21 -04:00
compat.c
early_printk.c
entry.S
hardwall.c arch/tile: check kmalloc() result 2010-07-16 13:37:14 -04:00
head_32.S
hvglue.lds
init_task.c
intvec_32.S arch/tile: extend syscall ABI to set r1 on return as well. 2010-08-13 16:37:00 -04:00
irq.c
machine_kexec.c
Makefile
messaging.c
module.c
pci-dma.c
proc.c arch: tile: kernel/proc.c Removed duplicated #include 2010-08-13 08:10:16 -04:00
process.c
ptrace.c
reboot.c
regs_32.S
relocate_kernel.S
setup.c arch/tile: correct a bug in freeing bootmem by VA for the optional second initrd. 2010-08-13 08:23:07 -04:00
signal.c
single_step.c
smp.c
smpboot.c
stack.c arch/tile: support backtracing on TILE-Gx 2010-08-13 08:40:57 -04:00
sys.c
tile-desc_32.c
time.c arch/tile: Use separate, better minsec values for clocksource and sched_clock. 2010-08-13 08:24:22 -04:00
tlb.c
traps.c arch/tile: support backtracing on TILE-Gx 2010-08-13 08:40:57 -04:00
vmlinux.lds.S