This commit is contained in:
Sean Rhodes 2026-08-13 17:39:52 -07:00 committed by GitHub
commit d09582db18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,8 +37,12 @@ ASM_PFX(TriggerSmi):
jne @Return ; SMM modified rax, return now
push rcx ; save rcx to stack
mov rcx, 10000
rep pause ; add a small delay
@Pause:
pause ; add a small delay
loop @Pause
pop rcx ; restore rcx
cmp rax, rcx ; Check for a response during the delay
jne @Return
cmp r8, 0
je @Return
dec r8