Rev 323 | Rev 353 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 323 | Rev 352 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | .global enable_l_apic_in_msr |
38 | .global enable_l_apic_in_msr |
39 | .global interrupt_handlers |
39 | .global interrupt_handlers |
40 | .global inb |
40 | .global inb |
41 | .global inw |
41 | .global inw |
42 | .global inl |
42 | .global inl |
43 | .global outb |
- | |
44 | .global outw |
43 | .global outw |
45 | .global outl |
44 | .global outl |
46 | .global memcpy |
45 | .global memcpy |
47 | .global memsetb |
46 | .global memsetb |
48 | .global memsetw |
47 | .global memsetw |
Line 191... | Line 190... | ||
191 | movl 4(%esp),%edx |
190 | movl 4(%esp),%edx |
192 | inl %dx,%eax |
191 | inl %dx,%eax |
193 | ret |
192 | ret |
194 | 193 | ||
195 | 194 | ||
196 | ## I/O output (byte) |
- | |
197 | # |
- | |
198 | # Send a byte to I/O port. |
- | |
199 | # |
- | |
200 | outb: |
- | |
201 | push %eax |
- | |
202 | - | ||
203 | movl 8(%esp),%edx |
- | |
204 | movl 12(%esp),%eax |
- | |
205 | outb %al,%dx |
- | |
206 | - | ||
207 | pop %eax |
- | |
208 | ret |
- | |
209 | - | ||
210 | - | ||
211 | ## I/O output (word) |
195 | ## I/O output (word) |
212 | # |
196 | # |
213 | # Send a word to I/O port. |
197 | # Send a word to I/O port. |
214 | # |
198 | # |
215 | outw: |
199 | outw: |