kernel-ark/arch/arm/kernel
Al Viro fa1b4f91d6 [ARM] safer handling of syscall table padding
ARM entry-common.S needs to know syscall table size; in itself that would
not be a problem, but there's an additional constraint - some of the
instructions using it want a constant that would be a multiple of 4.
So we have to pad syscall table with sys_ni_syscall and that's where
the trouble begins.  .rept pseudo-op wants a constant expression for
number of repetitions and subtraction of two labels (before and after
syscall table) doesn't always get simplified to constant early enough
for .rept.  If labels end up in different frags, we lose.  And while
the frag size is large enough (slightly below 4Kb), the syscall table
is about 1/3 of that.  We used to get away with that, but the recent
changes had been enough to trigger the breakage.

Proper fix is simple: have a macro (CALL(x)) to populate the table
instead of using explicit .long x and the first time we include calls.S
have it defined to .equ NR_syscalls,NR_syscalls+1.  Then we can find
the proper amount of padding on the first inclusion simply by looking
at NR_syscalls at that time.  And that will be constant, no matter what.

Moreover, the same trick kills the need of having an estimate of padded
NR_syscalls - it will be calculated for free at the same time.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-01-19 12:57:01 +00:00
..
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 [ARM] safer handling of syscall table padding 2006-01-19 12:57:01 +00:00
compat.c
debug.S
dma-isa.c
dma.c
ecard.c
entry-armv.S [ARM] 3271/1: ARM EABI: fix calling of cmpxchg syscall emulation 2006-01-18 22:38:49 +00:00
entry-common.S [ARM] safer handling of syscall table padding 2006-01-19 12:57:01 +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
head.S
init_task.c
io.c
irq.c
isa.c
iwmmxt.S
Makefile [ARM] 3109/1: old ABI compat: syscall wrappers for ABI impedance matching 2006-01-14 16:35:31 +00:00
module.c
process.c
ptrace.c [ARM] 3262/4: allow ptraced syscalls to be overriden 2006-01-14 19:30:04 +00: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 [ARM] 3270/1: ARM EABI: fix sigreturn and rt_sigreturn 2006-01-18 22:38:47 +00:00
signal.h [ARM] 3270/1: ARM EABI: fix sigreturn and rt_sigreturn 2006-01-18 22:38:47 +00:00
smp.c
sys_arm.c [ARM] 3110/5: old ABI compat: multi-ABI syscall entry support 2006-01-14 16:36:12 +00:00
sys_oabi-compat.c [ARM] 3109/1: old ABI compat: syscall wrappers for ABI impedance matching 2006-01-14 16:35:31 +00:00
time.c
traps.c [ARM] 3105/4: ARM EABI: new syscall entry convention 2006-01-14 16:31:29 +00:00
vmlinux.lds.S