.global poke
poke:
- # Preload registers: $0x1BADD00D
- mov $0x1BADD00D, %ecx
+ mov 8(%esp), %ecx
# Parameter: I/O port to set bit 2 of
- mov 4(%esp), %dx
+ mov 4(%esp), %edx
inl %dx, %eax
or $4, %eax
outl %eax, %dx
- # Count down for a while
- mov $0x10000, %edx
-loop:
- dec %edx
- jz loop
-
# Maybe SMM poked something?
mov %ecx, %eax
ret