mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 22:29:23 +02:00
+ added more ebx saving to cpuid invocations
git-svn-id: trunk@4147 -
This commit is contained in:
parent
e8b76c157b
commit
81b98c9d82
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user