Rev 9137 | Rev 9179 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9137 | Rev 9165 | ||
---|---|---|---|
Line 1302... | Line 1302... | ||
1302 | k.p12 = size; |
1302 | k.p12 = size; |
1303 | k.buf16 = buf; |
1303 | k.buf16 = buf; |
1304 | k.p20 = 0; |
1304 | k.p20 = 0; |
1305 | k.p21 = name; |
1305 | k.p21 = name; |
1306 | int status; |
1306 | int status; |
1307 | unsigned bytes_read_v; |
- | |
1308 | asm_inline( |
1307 | asm_inline( |
1309 | "int $0x40" |
1308 | "int $0x40" |
1310 | :"=a"(status), "=b"(bytes_read_v) |
1309 | :"=a"(status), "=b"(*bytes_read) |
1311 | :"a"(70), "b"(&k) |
1310 | :"a"(70), "b"(&k) |
1312 | :"memory" |
1311 | :"memory" |
1313 | ); |
1312 | ); |
1314 | if (!status) { |
- | |
1315 | *bytes_read = bytes_read_v; |
- | |
1316 | } |
- | |
1317 | return status; |
1313 | return status; |
1318 | } |
1314 | } |
Line 1319... | Line 1315... | ||
1319 | 1315 | ||
1320 | /*===================== Function 70, subfunction 2 =====================*/ |
1316 | /*===================== Function 70, subfunction 2 =====================*/ |
Line 1341... | Line 1337... | ||
1341 | k.p12 = size; |
1337 | k.p12 = size; |
1342 | k.cbuf16 = buf; |
1338 | k.cbuf16 = buf; |
1343 | k.p20 = 0; |
1339 | k.p20 = 0; |
1344 | k.p21 = name; |
1340 | k.p21 = name; |
1345 | int status; |
1341 | int status; |
1346 | unsigned bytes_written_v; |
- | |
1347 | asm_inline( |
1342 | asm_inline( |
1348 | "int $0x40" |
1343 | "int $0x40" |
1349 | :"=a"(status), "=b"(bytes_written_v) |
1344 | :"=a"(status), "=b"(*bytes_written) |
1350 | :"a"(70), "b"(&k) |
1345 | :"a"(70), "b"(&k) |
1351 | :"memory" |
1346 | :"memory" |
1352 | ); |
1347 | ); |
1353 | if (!status) { |
- | |
1354 | *bytes_written = bytes_written_v; |
- | |
1355 | } |
- | |
1356 | return status; |
1348 | return status; |
1357 | } |
1349 | } |
Line 1358... | Line 1350... | ||
1358 | 1350 |