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