Re: [PATCH v3 2/2] x86_64: Don't save flags on context switch

From: H. Peter Anvin
Date: Wed Oct 01 2014 - 14:35:48 EST


On 10/01/2014 11:28 AM, Andy Lutomirski wrote:
>
> #define __EXTRA_CLOBBER \
> , "rcx", "rbx", "rdx", "r8", "r9", "r10", "r11", \
> - "r12", "r13", "r14", "r15"
> + "r12", "r13", "r14", "r15", "flags"
>

I was under the impression that gcc *always* assumes the flags were
clobbered for an asm statement. Otherwise I think we'd have a lot of
problems.

-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/