chiark / gitweb /
Fix handling of cpuid and PIC on i386 systems
authornick.j.sanders <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
Mon, 7 Jan 2013 22:13:27 +0000 (22:13 +0000)
committernick.j.sanders <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
Mon, 7 Jan 2013 22:13:27 +0000 (22:13 +0000)
commit75884d4d5d55df09c56232f460011d5a5d42d547
treebf1984d14f64958cae30932db57521a213d4010f
parent1dbb40a37bee31db4125b2f6ae0a5be1a87f063d
Fix handling of cpuid and PIC on i386 systems

The current cpuid logic clobbers %ebx.  this is OK if the code is not PIC, but if you're building PIEs, it'll fail because %ebx is the PIC register and gcc doesn't let you clobber it.

Thanks to vapier@chromium.org
src/os.cc
src/worker.cc