]>
Commit | Line | Data |
---|---|---|
0889f342 JP |
1 | .global poke |
2 | poke: | |
0cd80c51 | 3 | mov 8(%esp), %ecx |
0889f342 JP |
4 | |
5 | # Parameter: I/O port to set bit 2 of | |
ea6c242b | 6 | mov 4(%esp), %edx |
0889f342 JP |
7 | inl %dx, %eax |
8 | or $4, %eax | |
9 | outl %eax, %dx | |
10 | ||
0889f342 JP |
11 | # Maybe SMM poked something? |
12 | mov %ecx, %eax | |
13 | ret |