mips: Reorganise code deduplication macros
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Feb 2024 21:12:19 +0000 (16:12 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Feb 2024 21:54:25 +0000 (16:54 -0500)
commita73c280b8cc72cb2de309a7b6268e23bfacbc95c
treeb9af7c2ce9fd3bc9dac2435ffe4711f65e240042
parent44ec21ebde0d91e8d9500c364ecff680759c4ae9
mips: Reorganise code deduplication macros

Introduce RSEQ_ASM_U64_PTR() which expresses the type and instance
of the defined variable.

Separate the RSEQ_ASM_LONG* macros from the 64-bit pointer types, as
those two are unrelated. Having them in the same vincinity is
misleading.

Test on RSEQ_BITS_PER_LONG rather than _MIPS_SZLONG to make it
consistent across architectures.

Use both __BYTE_ORDER and __BIG_ENDIAN to detect byte order.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I1a65210e9ab0c00a5625c9feba7971081eb34c35
include/rseq/arch/mips.h
This page took 0.030575 seconds and 4 git commands to generate.