Messages in this thread | | | Date | Wed, 13 Oct 2021 09:51:04 -0700 | From | "Andy Lutomirski" <> | Subject | Re: [PATCH] tools/nolibc: x86: Remove `r8`, `r9` and `r10` from the clobber list |
| |
On Wed, Oct 13, 2021, at 9:30 AM, Willy Tarreau wrote: > Hello Michael, > > On Wed, Oct 13, 2021 at 04:24:28PM +0000, Michael Matz wrote: > (...) >> In short: Ammars initial claim: >> >> > Linux x86-64 syscall only clobbers rax, rcx and r11 (and "memory"). >> > >> > - rax for the return value. >> > - rcx to save the return address. >> > - r11 to save the rflags. >> > >> > Other registers are preserved. >> >> is accurate and I will clarify the psABI to make that explicit. > > Many thanks for this very detailed explanation! Ammar, I'll take your > patch.
Acked-by: Andy Lutomirski <luto@kernel.org>
> > Thanks all, > Willy
| |