소스 검색

+ added more ebx saving to cpuid invocations

git-svn-id: trunk@4147 -
florian 19 년 전
부모
커밋
81b98c9d82
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      rtl/i386/i386.inc

+ 4 - 0
rtl/i386/i386.inc

@@ -55,9 +55,11 @@ function sse_support : boolean;
     if cpuid_support then
      begin
         asm
+          pushl %ebx
           movl $1,%eax
           cpuid
           movl %edx,_edx
+          popl %ebx          
         end;
         sse_support:=((_edx and $2000000)<>0) and os_supports_sse;
      end
@@ -77,9 +79,11 @@ function mmx_support : boolean;
      if cpuid_support then
        begin
           asm
+             pushl %ebx
              movl $1,%eax
              cpuid
              movl %edx,_edx
+             popl %ebx            
           end;
           mmx_support:=(_edx and $800000)<>0;
        end