lkml.org 
[lkml]   [2021]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tools/nolibc: x86: Remove `r8`, `r9` and `r10` from the clobber list
On Wed, Oct 13, 2021 at 06:30:23PM +0200, 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.

Great, why are we dealing with some funky document when the law is in
glibc sources?!

:-)))

Ammar, if you wanna fixup the comment in entry_64.S too - make sure you
explain that glibc expects argument registers to be restored - I'll take
that patch too.

:-)

Thx, that was fun.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette

\
 
 \ /
  Last update: 2021-10-13 18:52    [W:0.182 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site