summaryrefslogtreecommitdiffstats
path: root/src/include/byteswap.h
diff options
context:
space:
mode:
authorMichael Brown2017-01-26 10:45:19 +0100
committerMichael Brown2017-01-26 10:45:19 +0100
commitf8cf3ceb0bfc3e88ae32702e90b47439be0deee4 (patch)
tree9ca1fa8dd2745aeb1903f54a05047fbcc0014139 /src/include/byteswap.h
parent[int13] Avoid potential division by zero (diff)
downloadipxe-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/include/byteswap.h')
0 files changed, 0 insertions, 0 deletions