Christophe Leroy e876f0b69d lib/vdso: Allow architectures to provide the vdso data pointer
On powerpc, __arch_get_vdso_data() clobbers the link register, requiring
the caller to save it.

As the parent function already has to set a stack frame and saves the link
register before calling the C vdso function, retrieving the vdso data
pointer there is less overhead.

Split out the functional code from the __cvdso.*() interfaces into new
static functions which can either be called from the existing interfaces
with the vdso data pointer supplied via __arch_get_vdso_data() or directly
from ASM code.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://lore.kernel.org/r/abf97996602ef07223fec30c005df78e5ed41b2e.1580399657.git.christophe.leroy@c-s.fr
Link: https://lkml.kernel.org/r/20200207124403.965789141@linutronix.de
2020-02-17 20:12:18 +01:00
..
2019-09-20 09:06:26 -07:00
2018-08-22 10:52:48 -07:00
2018-10-12 09:17:46 +02:00
2020-02-04 03:05:26 +00:00
2018-08-16 12:14:42 -07:00
2014-04-30 19:49:37 +01:00
2017-02-24 17:46:57 -08:00
2020-02-11 16:39:18 -08:00
2020-01-29 15:25:34 -08:00
2019-12-07 11:00:19 -08:00
2020-02-11 16:39:18 -08:00
2018-10-16 13:45:44 +02:00
2019-07-11 15:17:41 -07:00
2020-02-04 03:05:26 +00:00
2018-06-27 18:58:49 +03:00
2018-10-15 16:31:29 -04:00
2017-08-15 09:02:07 -07:00