This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add REGISTERS_CLOBBERED_BY_SYSCALL for x86-64
- From: Rich Felker <dalias at libc dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 16 Dec 2015 12:08:06 -0500
- Subject: Re: [PATCH] Add REGISTERS_CLOBBERED_BY_SYSCALL for x86-64
- Authentication-results: sourceware.org; auth=none
- References: <20151215205725 dot GA11164 at intel dot com>
On Tue, Dec 15, 2015 at 12:57:25PM -0800, H.J. Lu wrote:
> X86-64 system calls use a different calling convention, which clobbers
> CC, %r11 an %rcx registers. Define REGISTERS_CLOBBERED_BY_SYSCALL for
> x86-64 inline asm statements.
>
> Tested on x86-64. OK for master?
I don't object, but is there a purpose to it? I agree the "different"
wording is confusing since there's normally no reason to expect
syscalls to look anything like function calls.
Rich