Changes in uspace/lib/c/arch/ia32/include/ddi.h [d161715:1e891d0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia32/include/ddi.h
rd161715 r1e891d0 44 44 45 45 asm volatile ( 46 "inb %w [port], %b[val]\n"47 : [val]"=a" (val)48 : [port]"d" (port)46 "inb %w1, %b0\n" 47 : "=a" (val) 48 : "d" (port) 49 49 ); 50 50 … … 57 57 58 58 asm volatile ( 59 "inw %w [port], %w[val]\n"60 : [val]"=a" (val)61 : [port]"d" (port)59 "inw %w1, %w0\n" 60 : "=a" (val) 61 : "d" (port) 62 62 ); 63 63 … … 70 70 71 71 asm volatile ( 72 "inl %w [port], %[val]\n"73 : [val]"=a" (val)74 : [port]"d" (port)72 "inl %w1, %0\n" 73 : "=a" (val) 74 : "d" (port) 75 75 ); 76 76 … … 81 81 { 82 82 asm volatile ( 83 "outb %b [val], %w[port]\n"84 :: [val] "a" (val), [port]"d" (port)83 "outb %b0, %w1\n" 84 :: "a" (val), "d" (port) 85 85 ); 86 86 } … … 89 89 { 90 90 asm volatile ( 91 "outw %w [val], %w[port]\n"92 :: [val] "a" (val), [port]"d" (port)91 "outw %w0, %w1\n" 92 :: "a" (val), "d" (port) 93 93 ); 94 94 } … … 97 97 { 98 98 asm volatile ( 99 "outl % [val], %w[port]\n"100 :: [val] "a" (val), [port]"d" (port)99 "outl %0, %w1\n" 100 :: "a" (val), "d" (port) 101 101 ); 102 102 }
Note:
See TracChangeset
for help on using the changeset viewer.