wok diff linld/stuff/src/_BEG.ASM @ rev 24051
Add veracrypt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 24 11:24:29 2021 +0000 (2021-05-24) |
parents | c1a1d1f23e07 |
children | 06547d8cf241 |
line diff
1.1 --- a/linld/stuff/src/_BEG.ASM Mon May 10 19:33:04 2021 +0000 1.2 +++ b/linld/stuff/src/_BEG.ASM Mon May 24 11:24:29 2021 +0000 1.3 @@ -219,19 +219,18 @@ 1.4 pushfd 1.5 pop dx 1.6 pop ax 1.7 - mov bl,al 1.8 xor al,20h ; toggle CPUID feature bit 21 (=> pentium+) 1.9 push ax ; (toggle AC: bit 18 => 486+) 1.10 push dx 1.11 popfd 1.12 pushfd 1.13 - pop dx ; dx.1=flags.1=1 1.14 - pop ax 1.15 - xor al,bl ; clear C 1.16 - je @@no_cpuid ; CPUID feature bit changed ? 1.17 + pop dx 1.18 + pop dx 1.19 + xor al,dl ; clear C 1.20 + jne @@no_cpuid ; CPUID feature bit changed ? 1.21 mov eax,80000001h ; Extended Processor Info and Feature Bits 1.22 cpuid 1.23 - mov dl,-1 ; set 386 flag (assume cpuid => fpu:bit0=1 ?) 1.24 + mov dl,-1 ; set 386 flag 1.25 ifdef NO386 1.26 db 66h ; mov [_cpu_features],edx 1.27 @@no_cpuid: