php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #76654
Patch zend_cpuinfo.c.patch revision 2018-11-15 09:18 UTC by php-bugs-2018 at ryandesign dot com
revision 2018-11-15 07:11 UTC by php-bugs-2018 at ryandesign dot com

Patch zend_cpuinfo.c.patch for Compile Failure Bug #76654

Patch version 2018-11-15 09:18 UTC

Return to Bug #76654 | Download this patch
Patch Revisions: 2018-11-15 09:18 UTC | 2018-11-15 07:11 UTC

Developer: php-bugs-2018@ryandesign.com



  @@ -36,11 +36,23 @@
   }
   # else
   static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo) {
 +#ifdef __i386__
 +#if defined(__i386__) && (defined(__pic__) || defined(__PIC__))
  +	/* PIC on i386 uses %ebx, so preserve it. */
  +	__asm__ __volatile__ (
  +		"pushl  %%ebx\n"
  +		"cpuid\n"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC