mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 06:14:42 +08:00
611e385087
The ptrace-gpr test includes some inline asm to load GPR and FPR registers. It then goes back to C to wait for the parent to trace it and then checks register contents. The split between inline asm and C is fragile, it relies on the compiler not using any non-volatile GPRs after the inline asm block. It also requires a very large and unwieldy inline asm block. So convert the logic to set registers, wait, and store registers to a single asm function, meaning there's no window for the compiler to intervene. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220627140239.2464900-10-mpe@ellerman.id.au |
||
---|---|---|
.. | ||
basic_asm.h | ||
fpu_asm.h | ||
gpr_asm.h | ||
instructions.h | ||
pkeys.h | ||
reg.h | ||
subunit.h | ||
utils.h | ||
vmx_asm.h | ||
vsx_asm.h |