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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201302180017.30445.vapier@gentoo.org>
Date:	Mon, 18 Feb 2013 00:17:29 -0500
From:	Mike Frysinger <vapier@...too.org>
To:	Benson Leung <bleung@...omium.org>
Cc:	len.brown@...el.com, colin.king@...onical.com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/1] tools/power x86_energy_perf_policy: fix cpuid for i686

On Thursday 14 February 2013 14:35:58 Benson Leung wrote:
> +	asm volatile ("mov %%ebx, %%edi;" /* save ebx (for PIC) */
> +		      "cpuid;"
> +		      "mov %%ebx, %%esi;" /* pass to caller */
> +		      "mov %%edi, %%ebx;" /* restore ebx */
> +		      :"+a" (_eax), "=S" (_ebx), "=c" (_ecx), "=d" (_edx)
> +		      :      /* inputs: eax is handled above */
> +		      :"edi" /* clobbers: we hit edi directly */);

i've written a better version since:
https://github.com/linux-test-project/ltp/blob/master/include/ltp_cpuid.h
-mike

Download attachment "signature.asc " of type "application/pgp-signature" (837 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ