linux-stable-rt/arch/arm/kernel
Nicolas Pitre 3f2829a315 [ARM] 3105/4: ARM EABI: new syscall entry convention
Patch from Nicolas Pitre

For a while we wanted to change the way syscalls were called on ARM.
Instead of encoding the syscall number in the swi instruction which
requires reading back the instruction from memory to extract that number
and polluting the data cache, it was decided that simply storing the
syscall number into r7 would be more efficient. Since this represents
an ABI change then making that change at the same time as EABI support
is the right thing to do.

It is now expected that EABI user space binaries put the syscall number
into r7 and use "swi 0" to call the kernel. Syscall register argument
are also expected to have "EABI arrangement" i.e. 64-bit arguments
should be put in a pair of registers from an even register number.

Example with long ftruncate64(unsigned int fd, loff_t length):

	legacy ABI:
	- put fd into r0
	- put length into r1-r2
	- use "swi #(0x900000 + 194)" to call the kernel

	new ARM EABI:
	- put fd into r0
	- put length into r2-r3 (skipping over r1)
	- put 194 into r7
	- use "swi 0" to call the kernel

Note that it is important to use 0 for the swi argument as backward
compatibility with legacy ABI user space relies on this.
The syscall macros in asm-arm/unistd.h were also updated to support
both ABIs and implement the right call method automatically.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-01-14 16:31:29 +00:00
..
Makefile
apm.c
armksyms.c [ARM] 3104/1: ARM EABI: new helper function names 2006-01-14 16:18:29 +00:00
arthur.c
asm-offsets.c
bios32.c
calls.S
compat.c
debug.S
dma-isa.c
dma.c
ecard.c [ARM] Convert some arm semaphores to mutexes 2006-01-12 18:42:23 +00:00
entry-armv.S [ARM] 3102/1: ARM EABI: stack pointer must be 64-bit aligned after a CPU exception 2006-01-14 16:18:08 +00:00
entry-common.S [ARM] 3105/4: ARM EABI: new syscall entry convention 2006-01-14 16:31:29 +00:00
entry-header.S [ARM] 3102/1: ARM EABI: stack pointer must be 64-bit aligned after a CPU exception 2006-01-14 16:18:08 +00:00
fiq.c [ARM] 3256/1: Make the function-returning ldm's use sp as the base register 2006-01-12 16:53:51 +00:00
head.S [ARM] 3259/1: remove phys_ram from struct machine_desc (part 1) 2006-01-13 20:51:46 +00:00
init_task.c
io.c
irq.c
isa.c
iwmmxt.S
module.c
process.c [PATCH] arm: task_stack_page() 2006-01-12 09:08:56 -08:00
ptrace.c [PATCH] arm: task_pt_regs() 2006-01-12 09:08:55 -08:00
ptrace.h
semaphore.c [ARM] 3103/1: ARM EABI: stack pointer must be 64-bit aligned (part 2) 2006-01-14 16:18:09 +00:00
setup.c
signal.c
signal.h
smp.c [PATCH] arm: task_stack_page() 2006-01-12 09:08:56 -08:00
sys_arm.c
time.c
traps.c [ARM] 3105/4: ARM EABI: new syscall entry convention 2006-01-14 16:31:29 +00:00
vmlinux.lds.S