Changeset 36b209a in mainline for arch/amd64/include/asm.h
- Timestamp:
- 2005-09-03T07:11:10Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 82a80d3
- Parents:
- 89344d85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
r89344d85 r36b209a 54 54 __u8 out; 55 55 56 asm(56 __asm__ volatile ( 57 57 "mov %1, %%dx;" 58 58 "inb %%dx,%%al;" … … 60 60 :"=m"(out) 61 61 :"m"(port) 62 :"% dx","%al"62 :"%rdx","%rax" 63 63 ); 64 64 return out; … … 67 67 static inline __u8 outb(__u16 port,__u8 b) 68 68 { 69 asm(69 __asm__ volatile ( 70 70 "mov %0,%%dx;" 71 71 "mov %1,%%al;" … … 73 73 : 74 74 :"m"( port), "m" (b) 75 :"% dx","%al"75 :"%rdx","%rax" 76 76 ); 77 77 }
Note:
See TracChangeset
for help on using the changeset viewer.