Код (ASM): ; Determine Intel Core generation GetIntelGeneration proc ; For Intel CPUs only ; ... cmp eax, 142 ; 8E hex - Coffee Lake (8th gen) je gen_8 ; ... cmp eax, 142 ; 8E hex - Kaby Lake (7th gen) je gen_7 cmp eax, 94 ; 5E hex - Skylake (6th gen) je gen_6 Мне что-то подсказывает, что 7 поколение этот код не опознает
В символах 10-32 есть такое: Код (Text): KiFlushBhbDuringTrapEntryOrExit@0: mov eax, 0DADAh mov ecx, 0DADAh test fs:[22D9h], 18h jnz short loc_5A1E85 int 3 loc_5A1E85: mov al, fs:[22D9h] and al, 18h cmp al, 8 jz short KiFlushBhbDuringTrapEntryOrExitPreAlderLake@0 cmp al, 10h jz short KiFlushBhbDuringTrapEntryOrExitAlderLake@0 cmp al, 18h jz KiFlushBhbDuringTrapEntryOrExitTsx@0 int 3 retn FlushBhbDuringTrapEntryOrExitPreAlderLake@0: mov ecx, 5 call sub_5A1EB0 ; jmp ro retn retn sub_5A1EB0: call sub_5A1EC0 retn sub_5A1EC0: mov eax, 5 loc_5A1EC5: jmp short loc_5A1EC8 loc_5A1EC8: sub eax, 1 jnz short loc_5A1EC5 sub ecx, 1 jnz short sub_5A1EB0 retn KiFlushBhbDuringTrapEntryOrExitTsx@: mov ax, 7 mov al, 0 lfence eax int 3 retn Bhb - branch history buffer, AlderLake