]>
Commit | Line | Data |
---|---|---|
98e930a2 JP |
1 | # poke-rls-asm.S |
2 | # Helper functions for poke-rls.c | |
3 | # NetWatch system management mode administration console | |
4 | # | |
5 | # Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved. | |
6 | # This program is free software; you can redistribute and/or modify it under | |
7 | # the terms found in the file LICENSE in the root of this source tree. | |
8 | ||
0889f342 JP |
9 | .global poke |
10 | poke: | |
0cd80c51 | 11 | mov 8(%esp), %ecx |
0889f342 JP |
12 | |
13 | # Parameter: I/O port to set bit 2 of | |
ea6c242b | 14 | mov 4(%esp), %edx |
0889f342 JP |
15 | inl %dx, %eax |
16 | or $4, %eax | |
17 | outl %eax, %dx | |
18 | ||
0889f342 JP |
19 | # Maybe SMM poked something? |
20 | mov %ecx, %eax | |
21 | ret |