ppc: Introduce code deduplication macros
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Feb 2024 21:33:02 +0000 (16:33 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 28 Feb 2024 21:54:43 +0000 (16:54 -0500)
commitf6b002478966576d42702807d47623a713c25716
tree5219b821e47cd0d7f8256aa5797998e060b4905f
parentb52031b2fc0fc6ea19d2cbe230b2e1e79357617e
ppc: 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: I7accb4925e1e294f2d65267641fd4c8dccb4837f
include/rseq/arch/ppc.h
This page took 0.023479 seconds and 4 git commands to generate.