x86-32: use %gs segment selector for accessing rseq thread area
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 20 Jan 2022 20:11:45 +0000 (15:11 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 24 Jan 2022 15:42:02 +0000 (10:42 -0500)
commit5383117629f289e76ab4266daf54d75a713c8b32
tree5becc817bd00f4fcd683d84e6cf23cb31fe1e587
parent7dc4bc29739ee137d531f11374c972e012597296
x86-32: use %gs 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 %gs 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: Ibd6fac4f2f80774ab74ae495cd0f688d789f36b8
include/rseq/rseq-x86.h
This page took 0.023679 seconds and 4 git commands to generate.