1304,12 → 1304,16 |
k.p20 = 0; |
k.p21 = name; |
int status; |
unsigned bytes_read_v; |
asm_inline( |
"int $0x40" |
:"=a"(status), "=b"(*bytes_read) |
:"=a"(status), "=b"(bytes_read_v) |
:"a"(70), "b"(&k) |
:"memory" |
); |
if (!status) { |
*bytes_read = bytes_read_v; |
} |
return status; |
} |
|
1339,12 → 1343,16 |
k.p20 = 0; |
k.p21 = name; |
int status; |
unsigned bytes_written_v; |
asm_inline( |
"int $0x40" |
:"=a"(status), "=b"(*bytes_written) |
:"=a"(status), "=b"(bytes_written_v) |
:"a"(70), "b"(&k) |
:"memory" |
); |
if (!status) { |
*bytes_written = bytes_written_v; |
} |
return status; |
} |
|