mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
Merge ca2a45a5ee into 2970e5699b
This commit is contained in:
commit
d09582db18
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue