Changeset 714675b in mainline for arch/ia32/src/asm.S


Ignore:
Timestamp:
2005-09-18T09:14:02Z (20 years ago)
Author:
Sergey Bondari <bondari@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7b43e11
Parents:
a5556b4
Message:

Outb, outw, outl are now inline functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/asm.S

    ra5556b4 r714675b  
    4141.global inw
    4242.global inl
    43 .global outw
    44 .global outl
    4543.global memcpy
    4644.global memsetb
     
    190188        movl 4(%esp),%edx
    191189        inl %dx,%eax
    192         ret
    193 
    194 
    195 ## I/O output (word)
    196 #
    197 # Send a word to I/O port.
    198 #
    199 outw:
    200         push %eax
    201 
    202         movl 8(%esp),%edx
    203         movl 12(%esp),%eax
    204         outw %ax,%dx
    205 
    206         pop %eax
    207         ret
    208 
    209 
    210 ## I/O output (dword)
    211 #
    212 # Send a dword to I/O port.
    213 #
    214 outl:
    215         push %eax
    216 
    217         movl 8(%esp),%edx
    218         movl 12(%esp),%eax
    219         outl %eax,%dx
    220 
    221         pop %eax
    222190        ret
    223191
Note: See TracChangeset for help on using the changeset viewer.