[PATCH] [BZ #19363] Use INTERNAL_SYSCALL_TIMES for Linux times

Mike Frysinger vapier@gentoo.org
Tue Dec 15 03:59:00 GMT 2015


On 14 Dec 2015 19:27, H.J. Lu wrote:
> +  clock_t ret = INTERNAL_SYSCALL_TIMES(err, buf);

needs a space before the (

> +/* Incline Linux times system calls.  */

"incline" ?  i don't understand what you mean.

> +# define INTERNAL_SYSCALL_TIMES(err, buf)				\

no space after the #

> +  ({									\
> +    unsigned long long int resultvar;					\
> +    LOAD_ARGS_1 (buf)							\
> +    LOAD_REGS_1								\
> +    asm volatile (							\
> +    "syscall\n\t"							\
> +    : "=a" (resultvar)							\
> +    : "0" (__NR_times) ASM_ARGS_1 : "memory", "cc", "r11", "cx");	\

should the cc/r11/cx be made into a sysdep define ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151215/aec0b4fd/attachment.sig>


More information about the Libc-alpha mailing list