android_kernel_xiaomi_sm7250/arch/arm
Nicolas Pitre 2d2669b629 [PATCH] ARM: 2651/3: kernel helpers for NPTL support
Patch from Nicolas Pitre

This patch entirely reworks the kernel assistance for NPTL on ARM.
In particular this provides an efficient way to retrieve the TLS
value and perform atomic operations without any instruction emulation
nor special system call.  This even allows for pre ARMv6 binaries to
be forward compatible with SMP systems without any penalty.
The problematic and performance critical operations are performed
through segment of kernel provided user code reachable from user space
at a fixed address in kernel memory.  Those fixed entry points are
within the vector page so we basically get it for free as no extra
memory page is required and nothing else may be mapped at that
location anyway.
This is different from (but doesn't preclude) a full blown VDSO
implementation, however a VDSO would prevent some assembly tricks with
constants that allows for efficient branching to those code segments.
And since those code segments only use a few cycles before returning to
user code, the overhead of a VDSO far call would add a significant
overhead to such minimalistic operations.
The ARM_NR_set_tls syscall also changed number.  This is done for two
reasons:
1) this patch changes the way the TLS value was previously meant to be
   retrieved, therefore we ensure whatever library using the old way
   gets fixed (they only exist in private tree at the moment since the
   NPTL work is still progressing).
2) the previous number was allocated in a range causing an undefined
   instruction trap on kernels not supporting that syscall and it was
   determined that allocating it in a range returning -ENOSYS would be
   much nicer for libraries trying to determine if the feature is
   present or not.

Signed-off-by: Nicolas Pitre
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2005-04-29 22:08:33 +01:00
..
boot Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
common Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
configs Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kernel [PATCH] ARM: 2651/3: kernel helpers for NPTL support 2005-04-29 22:08:33 +01:00
lib [PATCH] ARM: Add missing new file for bitops patch 2005-04-18 22:50:01 +01:00
mach-clps711x Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-clps7500 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-ebsa110 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-epxa10db Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-footbridge [PATCH] ARM: footbridge rtc init 2005-04-17 15:36:55 +01:00
mach-h720x Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-imx Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-integrator Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-iop3xx Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-ixp4xx [PATCH] arm: fix help text for ixdp465 2005-04-16 15:23:56 -07:00
mach-ixp2000 [PATCH] ARM: 2659/1: do not assign PCI I/O address zero on IXP2000 2005-04-29 21:58:16 +01:00
mach-l7200 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-lh7a40x Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-omap Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-pxa [PATCH] ARM: 2650/1: PXA27x sleep - workaround Errata 39 & 50 (Patch 2667) 2005-04-25 23:38:55 +01:00
mach-rpc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-s3c2410 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-sa1100 [PATCH] ARM: h3600_irda_set_speed arguments 2005-04-17 15:40:46 +01:00
mach-shark Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach-versatile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mm [PATCH] ARM: 2651/3: kernel helpers for NPTL support 2005-04-29 22:08:33 +01:00
nwfpe Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
oprofile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tools Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vfp Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig.debug Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00