glibc/sysdeps/unix/sysv/linux/hppa
John David Anglin 9e7e5fda38 hppa: Revise gettext trampoline design
The current getcontext return trampoline is overly complex and it
unnecessarily clobbers several registers.  By saving the context
pointer (r26) in the context, __getcontext_ret can restore any
registers not restored by setcontext.  This allows getcontext to
save and restore the entire register context present when getcontext
is entered.  We use the unused oR0 context slot for the return
from __getcontext_ret.

While this is not directly useful in C, it can be exploited in
assembly code.  Registers r20, r23, r24 and r25 are not clobbered
in the call path to getcontext.  This allows a small simplification
of swapcontext.

It also allows saving and restoring the 6-bit SAR register in the
LSB of the oSAR context slot.  The getcontext flag value can be
stored in the MSB of the oSAR slot.
2022-02-22 17:28:46 +00:00
..
bits
sys
Implies
Makefile
Versions
____longjmp_chk.c
arch-syscall.h Update syscall lists for Linux 5.16 2022-01-13 22:18:13 +00:00
atomic-machine.h
c++-types.data
clone.S
errlist-compat.c
fanotify_mark.c
getcontext.S hppa: Revise gettext trampoline design 2022-02-22 17:28:46 +00:00
kernel-features.h
kernel_stat.h
ld.abilist Fix glibc 2.34 ABI omission (missing GLIBC_2.34 in dynamic loader) 2022-01-27 18:52:05 +01:00
libBrokenLocale.abilist
libanl.abilist
libc.abilist posix: Replace posix_spawnattr_tc{get,set}pgrp_np with posix_spawn_file_actions_addtcsetpgrp_np 2022-02-02 08:34:16 -03:00
libc_malloc_debug.abilist
libcrypt.abilist
libdl.abilist
libm.abilist
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data
makecontext.c
prlimit64.c
setcontext.S hppa: Revise gettext trampoline design 2022-02-22 17:28:46 +00:00
shlib-versions
sigcontextinfo.h
socket-constants-time64.h
struct_kernel_msqid64_ds.h
struct_kernel_semid64_ds.h
struct_kernel_shmid64_ds.h
swapcontext.c hppa: Revise gettext trampoline design 2022-02-22 17:28:46 +00:00
syscalls.list
sysdep.c
sysdep.h
time64-compat.h
ucontext_i.sym