lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <4B168EEE02000078000230D5@vpn.id2.novell.com>
Date:	Wed, 02 Dec 2009 14:59:42 +0000
From:	"Jan Beulich" <JBeulich@...ell.com>
To:	"Avi Kivity" <avi@...hat.com>
Cc:	<a.p.zijlstra@...llo.nl>, "Ingo Molnar" <mingo@...e.hu>,
	<tglx@...utronix.de>, <torvalds@...ux-foundation.org>,
	<mingo@...hat.com>, <npiggin@...e.de>,
	<linux-kernel@...r.kernel.org>,
	<linux-tip-commits@...r.kernel.org>, <hpa@...or.com>
Subject: Re: [tip:core/locking] locking, x86: Slightly shorten	
	 __ticket_spin_trylock()

>>> Avi Kivity <avi@...hat.com> 02.12.09 15:36 >>>
>On 12/02/2009 04:25 PM, Jan Beulich wrote:
>>>>> Avi Kivity<avi@...hat.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'.

But unless you drop the early-clobber on new, the compiler will have
to allocate another register, which I think is not desirable here.

Jan

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ