Changeset 36b209a in mainline for arch/amd64/include/asm.h


Ignore:
Timestamp:
2005-09-03T07:11:10Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82a80d3
Parents:
89344d85
Message:

Added volatile to inb/outb, so that it does not optimeze
lot of things out anymore.
Working delay loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/include/asm.h

    r89344d85 r36b209a  
    5454        __u8 out;
    5555
    56         asm (
     56        __asm__ volatile (
    5757                "mov %1, %%dx;"
    5858                "inb %%dx,%%al;"
     
    6060                :"=m"(out)
    6161                :"m"(port)
    62                 :"%dx","%al"
     62                :"%rdx","%rax"
    6363                );
    6464        return out;
     
    6767static inline __u8 outb(__u16 port,__u8 b)
    6868{
    69         asm (
     69        __asm__ volatile (
    7070                "mov %0,%%dx;"
    7171                "mov %1,%%al;"
     
    7373                :
    7474                :"m"( port), "m" (b)
    75                 :"%dx","%al"
     75                :"%rdx","%rax"
    7676                );
    7777}
Note: See TracChangeset for help on using the changeset viewer.