Changeset 0cb9fa0 in mainline


Ignore:
Timestamp:
2009-02-21T17:09:26Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cecb0789
Parents:
9646159
Message:

Fix ia32's pio_{read,write}_32().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/asm.h

    r9646159 r0cb9fa0  
    132132static inline void pio_write_32(ioport32_t *port, uint32_t val)
    133133{
    134         asm volatile ("outl %l0, %w1\n" : : "a" (val), "d" (port));
     134        asm volatile ("outl %0, %w1\n" : : "a" (val), "d" (port));
    135135}
    136136
     
    176176        uint32_t val;
    177177       
    178         asm volatile ("inl %w1, %l0 \n" : "=a" (val) : "d" (port));
     178        asm volatile ("inl %w1, %0 \n" : "=a" (val) : "d" (port));
    179179        return val;
    180180}
Note: See TracChangeset for help on using the changeset viewer.