s390: Introduce code deduplication macros
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Feb 2024 21:49:43 +0000 (16:49 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Feb 2024 21:54:43 +0000 (16:54 -0500)
commit8892a73f72e101bf1afc36c87610debc05374922
tree6fe7e255cd3ca693de592bd8646e3dab2c1b364d
parentf6b002478966576d42702807d47623a713c25716
s390: Introduce code deduplication macros

Introduce RSEQ_ASM_U64_PTR() which expresses the type and instance
of the defined variable, allowing deduplication of the following macros:

- __RSEQ_ASM_DEFINE_TABLE,
- RSEQ_ASM_DEFINE_EXIT_POINT.

Separate load/store/op helper macros, RSEQ_ASM_STORE_RSEQ_CS, and
RSEQ_ASM_U64_PTR into their respective ifdef regions, as the resulting
documentation is clearer (and not duplicated).

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