x86-64: use %fs segment selector for accessing rseq thread area
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 20 Jan 2022 19:36:33 +0000 (14:36 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 24 Jan 2022 15:42:02 +0000 (10:42 -0500)
commit7dc4bc29739ee137d531f11374c972e012597296
tree3be5ae25aa78c2c69b626bbb36e8be78546fa0b1
parentf325f8f60c5877c8448d090d508d9ed13d16eca5
x86-64: use %fs segment selector for accessing rseq thread area

Rather than use rseq_get_abi() and pass its result through a register to
the inline assembler, directly access the per-thread rseq area through a
memory reference combining the %fs segment selector, the constant offset
of the field in struct rseq, and the rseq_offset value (in a register).

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