Commit c618de4
insert NOP after STI
Insert a NOP instruction after STI to make sure the interrupt shadow
doesn't extend past the enable function.
From the AMD64 APM, Volume 3:
> If STI sets the IF flag and IF was initially clear, then interrupts
> are not enabled until after the instruction following STI. Thus, if
> IF is 0, this code will not allow an INTR to happen:
>
> STI
> CLI
>
> In the following sequence, INTR will be allowed to happen only after the NOP.
>
> STI
> NOP
> CLI1 parent 2c86471 commit c618de4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments