Changeset a35b458 in mainline for uspace/lib/c/arch/ia32/include/libarch/ddi.h
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia32/include/libarch/ddi.h
r3061bc1 ra35b458 42 42 if (port < (ioport8_t *) IO_SPACE_BOUNDARY) { 43 43 uint8_t val; 44 44 45 45 asm volatile ( 46 46 "inb %w[port], %b[val]\n" … … 48 48 : [port] "d" (port) 49 49 ); 50 50 51 51 return val; 52 52 } else … … 58 58 if (port < (ioport16_t *) IO_SPACE_BOUNDARY) { 59 59 uint16_t val; 60 60 61 61 asm volatile ( 62 62 "inw %w[port], %w[val]\n" … … 64 64 : [port] "d" (port) 65 65 ); 66 66 67 67 return val; 68 68 } else … … 74 74 if (port < (ioport32_t *) IO_SPACE_BOUNDARY) { 75 75 uint32_t val; 76 76 77 77 asm volatile ( 78 78 "inl %w[port], %[val]\n" … … 80 80 : [port] "d" (port) 81 81 ); 82 82 83 83 return val; 84 84 } else
Note:
See TracChangeset
for help on using the changeset viewer.