Changeset 8cc4ddb in mainline for kernel/arch/ia32/include/asm.h
- Timestamp:
- 2011-08-28T21:16:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f0f8bc
- Parents:
- 1a5b252 (diff), 36e2b55 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/asm.h
r1a5b252 r8cc4ddb 118 118 :: [val] "a" (val), [port] "d" (port) 119 119 ); 120 } else {120 } else 121 121 *port = val; 122 }123 122 } 124 123 … … 138 137 :: [val] "a" (val), [port] "d" (port) 139 138 ); 140 } else {139 } else 141 140 *port = val; 142 }143 141 } 144 142 … … 158 156 :: [val] "a" (val), [port] "d" (port) 159 157 ); 160 } else {158 } else 161 159 *port = val; 162 }163 160 } 164 161 … … 175 172 if (((void *)port) < IO_SPACE_BOUNDARY) { 176 173 uint8_t val; 174 177 175 asm volatile ( 178 176 "inb %w[port], %b[val]\n" … … 180 178 : [port] "d" (port) 181 179 ); 180 182 181 return val; 183 } else {182 } else 184 183 return (uint8_t) *port; 185 }186 184 } 187 185 … … 198 196 if (((void *)port) < IO_SPACE_BOUNDARY) { 199 197 uint16_t val; 198 200 199 asm volatile ( 201 200 "inw %w[port], %w[val]\n" … … 203 202 : [port] "d" (port) 204 203 ); 204 205 205 return val; 206 } else {206 } else 207 207 return (uint16_t) *port; 208 }209 208 } 210 209 … … 221 220 if (((void *)port) < IO_SPACE_BOUNDARY) { 222 221 uint32_t val; 222 223 223 asm volatile ( 224 224 "inl %w[port], %[val]\n" … … 226 226 : [port] "d" (port) 227 227 ); 228 228 229 return val; 229 } else {230 } else 230 231 return (uint32_t) *port; 231 }232 232 } 233 233
Note:
See TracChangeset
for help on using the changeset viewer.