Changes in uspace/lib/c/arch/ia32/include/ddi.h [c22531fc:c8f70eb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia32/include/ddi.h
rc22531fc rc8f70eb 43 43 if (port < (ioport8_t *) IO_SPACE_BOUNDARY) { 44 44 uint8_t val; 45 46 45 asm volatile ( 47 46 "inb %w[port], %b[val]\n" … … 49 48 : [port] "d" (port) 50 49 ); 51 52 50 return val; 53 } else 51 } else { 54 52 return (uint8_t) *port; 53 } 55 54 } 56 55 … … 59 58 if (port < (ioport16_t *) IO_SPACE_BOUNDARY) { 60 59 uint16_t val; 61 62 60 asm volatile ( 63 61 "inw %w[port], %w[val]\n" … … 65 63 : [port] "d" (port) 66 64 ); 67 68 65 return val; 69 } else 66 } else { 70 67 return (uint16_t) *port; 68 } 71 69 } 72 70 … … 75 73 if (port < (ioport32_t *) IO_SPACE_BOUNDARY) { 76 74 uint32_t val; 77 78 75 asm volatile ( 79 76 "inl %w[port], %[val]\n" … … 81 78 : [port] "d" (port) 82 79 ); 83 84 80 return val; 85 } else 81 } else { 86 82 return (uint32_t) *port; 83 } 87 84 } 88 85 … … 94 91 :: [val] "a" (val), [port] "d" (port) 95 92 ); 96 } else 93 } else { 97 94 *port = val; 95 } 98 96 } 99 97 … … 105 103 :: [val] "a" (val), [port] "d" (port) 106 104 ); 107 } else 105 } else { 108 106 *port = val; 107 } 109 108 } 110 109 … … 116 115 :: [val] "a" (val), [port] "d" (port) 117 116 ); 118 } else 117 } else { 119 118 *port = val; 119 } 120 120 } 121 121
Note:
See TracChangeset
for help on using the changeset viewer.