lkml.org 
[lkml]   [2009]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:core/locking] locking, x86: Slightly shorten __ticket_spin_trylock()
On 12/02/2009 04:25 PM, Jan Beulich wrote:
>>>> Avi Kivity<avi@redhat.com> 02.12.09 15:12>>>
>>>>
>> Wouldn't 'u8 ret', as an additional argument be sufficient? gcc still
>> ought to be able to use the same register for new and ret if we remove
>> the early clobber.
>>
> We can't (validly) remove the early-clobber, otherwise the compiler
> would be permitted to use a register also used for addressing the lock
> structure for "new".
>

I meant for 'ret'.

--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2009-12-02 15:39    [W:0.066 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site