linux_dsm_epyc7002/arch/tile/include/uapi/asm
Chris Metcalf ce433f8090 tile: avoid undefined behavior with regs[TREG_TP] etc
Recent compilers warn about accesses to arrays past the end,
which is supported for pt_regs and sigcontext with the
intended alias past the end of regs[] to sp, tp, and lr
using TREG_SP, TREG_TP, and TREG_LR.

Make the intended usage explict by providing an anonymous
union of regs[56] on the one hand, and a short __regs[53]
on the other followed by the sp, tp, and lr fields, so the
aliasing is done explicitly and is visible to the compiler.

Reviewed-by: Jeff Epler <jepler@unpythonic.net>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
2014-11-13 09:39:26 -05:00
..
auxvec.h tile: implement gettimeofday() via vDSO 2013-08-13 16:26:21 -04:00
bitsperlong.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
byteorder.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
cachectl.h tile: convert uses of "inv" to "finv" 2013-07-31 11:51:19 -04:00
hardwall.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
Kbuild UAPI: The tile arch uses the generic ucontext.h file 2012-10-17 12:31:16 +01:00
kvm_para.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
mman.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
ptrace.h tile: avoid undefined behavior with regs[TREG_TP] etc 2014-11-13 09:39:26 -05:00
setup.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
sigcontext.h tile: avoid undefined behavior with regs[TREG_TP] etc 2014-11-13 09:39:26 -05:00
siginfo.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
signal.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
stat.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
swab.h UAPI: (Scripted) Disintegrate arch/tile/include/asm 2012-10-09 09:47:47 +01:00
unistd.h tile: Add definition of NR_syscalls 2013-03-21 15:39:35 -04:00