kernel-ark/include/asm-arm
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
..
arch-aaec2000
arch-cl7500
arch-clps711x
arch-ebsa110
arch-ebsa285
arch-epxa10db
arch-h720x
arch-imx
arch-integrator
arch-iop3xx
arch-ixp4xx [ARM] 2869/1: ixp4xx: correct ioread*/iowrite* 2005-08-31 21:45:14 +01:00
arch-ixp2000
arch-l7200
arch-lh7a40x
arch-omap
arch-pxa [ARM] 2861/1: PXA: Add some extra pxa27x register definitions 2005-08-29 22:46:33 +01:00
arch-rpc
arch-s3c2410 [ARM] 2855/1: S3C2410 - add CLKSLOW definitions, and show in init 2005-08-29 22:46:30 +01:00
arch-sa1100 [MFD] Add SA11x0 MCP platform device support 2005-08-18 10:10:46 +01:00
arch-shark
arch-versatile
hardware [ARM] Add support for ARM GIC 2005-08-18 21:31:00 +01:00
mach
a.out.h
apm.h
assembler.h
atomic.h
bitops.h [ARM SMP] Fix another ARMv6 bitop problem 2005-07-28 20:36:26 +01:00
bug.h [PATCH] qualifiers in return types - easy cases 2005-08-23 18:43:45 -07:00
bugs.h
byteorder.h
cache.h
cacheflush.h
checksum.h
cpu-multi32.h [PATCH] qualifiers in return types - easy cases 2005-08-23 18:43:45 -07:00
cpu-single.h [PATCH] qualifiers in return types - easy cases 2005-08-23 18:43:45 -07:00
cpu.h
cputime.h
current.h
delay.h
div64.h
dma-mapping.h
dma.h
domain.h
ecard.h
elf.h
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
errno.h
fcntl.h
fiq.h
floppy.h
fpstate.h
glue.h
hardirq.h
hardware.h
hdreg.h
ide.h
io.h
ioctl.h
ioctls.h
ipc.h
ipcbuf.h
irq.h
kmap_types.h
leds.h
limits.h
linkage.h
local.h
locks.h [PATCH] ARM SMP: Add ARMv6 memory barriers 2005-07-26 19:44:26 +01:00
mc146818rtc.h
memory.h
mman.h
mmu_context.h
mmu.h
mmzone.h
module.h
msgbuf.h
mtd-xip.h
namei.h
numnodes.h
nwflash.h
page.h
param.h
parport.h
pci.h [PATCH] pci and yenta: pcibios_bus_to_resource 2005-08-04 21:32:46 -07:00
percpu.h
pgalloc.h
pgtable.h [ARM] Control v6 'global' bit via Linux PTE entries 2005-08-10 16:18:35 +01:00
poll.h
posix_types.h
proc-fns.h
processor.h
procinfo.h
ptrace.h
resource.h
rtc.h
scatterlist.h
sections.h
segment.h
semaphore-helper.h
semaphore.h
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sizes.h
smp.h
socket.h
sockios.h
spinlock.h [PATCH] ARM SMP: Add ARMv6 memory barriers 2005-07-26 19:44:26 +01:00
stat.h
statfs.h
string.h
suspend.h
system.h [PATCH] ARM SMP: Add ARMv6 memory barriers 2005-07-26 19:44:26 +01:00
termbits.h
termios.h
therm.h
thread_info.h
timex.h
tlb.h
tlbflush.h
topology.h
traps.h
types.h
uaccess.h
ucontext.h
unaligned.h
unistd.h [ARM] 2865/2: fix fadvise64_64 syscall argument passing 2005-09-01 12:37:13 +01:00
user.h
vfp.h
vfpmacros.h
vga.h
xor.h