diff options
| author | Michael Brown | 2017-01-26 10:45:19 +0100 |
|---|---|---|
| committer | Michael Brown | 2017-01-26 10:45:19 +0100 |
| commit | f8cf3ceb0bfc3e88ae32702e90b47439be0deee4 (patch) | |
| tree | 9ca1fa8dd2745aeb1903f54a05047fbcc0014139 /src/interface/linux/linux_uaccess.c | |
| parent | [int13] Avoid potential division by zero (diff) | |
| download | ipxe-f8cf3ceb0bfc3e88ae32702e90b47439be0deee4.tar.gz ipxe-f8cf3ceb0bfc3e88ae32702e90b47439be0deee4.tar.xz ipxe-f8cf3ceb0bfc3e88ae32702e90b47439be0deee4.zip | |
[int13] Test correct return status from INT 13 calls
INT 13 calls return a status value via %ah, with CF set if %ah is
non-zero (indicating an error). Our wrappers zero the whole of %ax if
CF is clear, to allow C code (which has no easy access to CF) to
simply test for a non-zero status to detect an error.
The current code assigns the returned status to a uint8_t, effectively
testing %al rather than %ah. Fix by treating the returned status as a
uint16_t instead.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/linux/linux_uaccess.c')
0 files changed, 0 insertions, 0 deletions
