]> Joshua Wise's Git repositories - netwatch.git/blob - tools/poke-rls-asm.S
ee4485494a08760134fee70b3f26fe79b3d06b46
[netwatch.git] / tools / poke-rls-asm.S
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), %dx
8         inl %dx, %eax
9         or $4, %eax
10         outl %eax, %dx
11
12         # Count down for a while
13         mov $0x10000, %edx
14 loop:
15         dec %edx
16         jz loop
17
18         # Maybe SMM poked something?
19         mov %ecx, %eax
20         ret
This page took 0.020324 seconds and 2 git commands to generate.