public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/32051] New: getcontext/swapcontext/setcontext unnecessarely save and restore argument passing registers on SysV x86-64
@ 2024-08-04 11:59 stefanoguerrini93 at gmail dot com
  0 siblings, 0 replies; only message in thread
From: stefanoguerrini93 at gmail dot com @ 2024-08-04 11:59 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32051

            Bug ID: 32051
           Summary: getcontext/swapcontext/setcontext unnecessarely save
                    and restore argument passing registers on SysV x86-64
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: stefanoguerrini93 at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
            Target: x86-64

The getcontext/swapcontext/setcontext functions save (restore) the
RDI/RSI/RDX/RCX/R8/R9 registers for the current (target) context. However,
according to the SysV x86-64 ABI these registers are not required to be
preserved across function calls. 

I think that these registers shall be restored only for the first call of the
context created via the makecontext().

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-04 11:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-04 11:59 [Bug libc/32051] New: getcontext/swapcontext/setcontext unnecessarely save and restore argument passing registers on SysV x86-64 stefanoguerrini93 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).