[Mplayer-cvslog] CVS: main/mp3lib d_cpu.s,1.2,1.3

Zoltan Ponekker pontscho at users.sourceforge.net
Wed May 9 18:40:08 CEST 2001


Update of /cvsroot/mplayer/main/mp3lib
In directory usw-pr-cvs1:/tmp/cvs-serv772/mp3lib

Modified Files:
	d_cpu.s 
Log Message:
cpuid bug fixed. remelem.

Index: d_cpu.s
===================================================================
RCS file: /cvsroot/mplayer/main/mp3lib/d_cpu.s,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** d_cpu.s	2001/05/09 07:54:56	1.2
--- d_cpu.s	2001/05/09 16:40:06	1.3
***************
*** 16,29 ****
  / ---------------------------------------------------------------------------
  CpuDetect:
          pushl %ebx
          pushl %ecx
          pushl %edx
  
!         movl  $1,%eax
          cpuid
  
          popl  %edx
          popl  %ecx
          popl  %ebx
          ret
  
--- 16,47 ----
  / ---------------------------------------------------------------------------
  CpuDetect:
+ 	pushl %eax
          pushl %ebx
          pushl %ecx
          pushl %edx
  
!         pushfl
!         popl   %eax
!         movl   %eax,%ebx
!         xorl   $0x00200000,%eax
!         pushl  %eax
!         popfl
!         pushfl
!         popl   %eax
!         cmpl   %eax,%ebx
!         jz     no_cpuid_cpudetect
! 	
!         movl   $1,%eax
          cpuid
+ 	
+         jmp    exit_cpudetect
+ no_cpuid_cpudetect:
+         xorl   %eax,%eax
+ exit_cpudetect:
  
          popl  %edx
          popl  %ecx
          popl  %ebx
+ 	popl  %eax
          ret
  


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list