lkml.org 
[lkml]   [2014]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v3 2/2] x86_64: Don't save flags on context switch
On Wed, Oct 1, 2014 at 11:35 AM, H. Peter Anvin <hpa@zytor.com> wrote:
> 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.
>

I have no idea, but I doubt that adding the explicit "flags" clobber
hurts, and it will make other people who are unsure about this less
worried.

--Andy

> -hpa
>
>



--
Andy Lutomirski
AMA Capital Management, LLC


\
 
 \ /
  Last update: 2014-10-01 21:21    [W:0.097 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site