HomeFreeBSD

linux(4): Cleanup signal trampolines

Description

linux(4): Cleanup signal trampolines

This is the first stage of a signal trampolines refactoring.

From trampolines retired emulation of the 'call' instruction, which is
replaced by direct call of a signal handler. The signal handler address
is in the register.

The previous trampoline implemenatation used semi-Linux-way to call
a signal handler via the 'jmp' instruction. Wherefore the trampoline
emulated a 'call' instruction to into the stack the return address for
signal handler's 'ret' instruction. Wherefore handmade DWARD annotations
was used.

While here rephrased and removed excessive comments.

MFC after: 2 weeks

Details

Provenance
dchaginAuthored on May 15 2022, 6:00 PM
Parents
rG0b5d5dc3767f: linux(4): Retire unneeded initialization
Branches
Unknown
Tags
Unknown