kernel_optimize_test/arch/arm/kernel
Nicolas Pitre 68d9102f76 [ARM] 2865/2: fix fadvise64_64 syscall argument passing
Patch from Nicolas Pitre

The prototype for sys_fadvise64_64() is:
    long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice)
The argument list is therefore as follows on legacy ABI:
	fd: type int (r0)
	offset: type long long (r1-r2)
	len: type long long (r3-sp[0])
	advice: type int (sp[4])
With EABI this becomes:
	fd: type int (r0)
	offset: type long long (r2-r3)
	len: type long long (sp[0]-sp[4])
	advice: type int (sp[8])
Not only do we have ABI differences here, but the EABI version requires
one additional word on the syscall stack.
To avoid the ABI mismatch and the extra stack space required with EABI
this syscall is now defined with a different argument ordering
on ARM as follows:
    long sys_arm_fadvise64_64(int fd, int advice, loff_t offset, loff_t len)
This gives us the following ABI independent argument distribution:
	fd: type int (r0)
	advice: type int (r1)
	offset: type long long (r2-r3)
	len: type long long (sp[0]-sp[4])
Now, since the syscall entry code takes care of 5 registers only by
default including the store of r4 to the stack, we need a wrapper to
store r5 to the stack as well.  Because that wrapper was missing and was
always required this means that sys_fadvise64_64 never worked on ARM and
therefore we can safely reuse its syscall number for our new
sys_arm_fadvise64_64 interface.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2005-09-01 12:37:13 +01:00
..
apm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
armksyms.c [PATCH] ARM: 2791/1: Add CRCs for aliased ARM symbols 2005-07-06 23:06:05 +01:00
arthur.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
asm-offsets.c [PATCH] ARM: pt_regs offsets 2005-04-26 15:18:59 +01:00
bios32.c [PATCH] pci and yenta: pcibios_bus_to_resource 2005-08-04 21:32:46 -07:00
calls.S [ARM] 2865/2: fix fadvise64_64 syscall argument passing 2005-09-01 12:37:13 +01:00
compat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
debug.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma-isa.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ecard.c [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
entry-armv.S [ARM SMP] Clear the exclusive monitor on ARMv6 CPUs on context switch 2005-08-10 14:52:52 +01:00
entry-common.S [ARM] 2865/2: fix fadvise64_64 syscall argument passing 2005-09-01 12:37:13 +01:00
entry-header.S [PATCH] ARM SMP: convert alignment enable 2005-05-31 18:02:00 +01:00
fiq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head.S [PATCH] ARM: Make the magic values in head.S more obvious 2005-07-01 11:56:55 +01:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq.c [PATCH] ARM: Generic Dynamic Tick Timer support for ARM, take 4 2005-06-25 19:39:45 +01:00
isa.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iwmmxt.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] ARM: Remove obsolete arch/arm/kernel/arch.c 2005-06-20 12:56:40 +01:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
process.c [PATCH] Don't export machine_restart, machine_halt, or machine_power_off. 2005-07-26 14:35:42 -07:00
ptrace.c [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
ptrace.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PATCH] ARM: Change 'param_offset' to 'boot_params' 2005-07-04 10:43:36 +01:00
signal.c [PATCH] convert signal handling of NODEFER to act like other Unix boxes. 2005-08-29 10:03:11 -07:00
signal.h [PATCH] ARM: Move signal return code into vector page 2005-06-22 20:26:05 +01:00
smp.c [ARM SMP] Ensure secondary CPUs have a clean TLB 2005-07-28 20:32:47 +01:00
sys_arm.c [ARM] 2865/2: fix fadvise64_64 syscall argument passing 2005-09-01 12:37:13 +01:00
time.c [ARM] 2857/2: Dynamic tick - fix OOPS if configured and not provided 2005-08-31 09:42:14 +01:00
traps.c [PATCH] qualifiers in return types - easy cases 2005-08-23 18:43:45 -07:00
vmlinux.lds.S [PATCH] ARM: Fix kernel stack offset calculations 2005-05-05 13:11:00 +01:00