diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-12-13 13:04:17 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-12-13 13:04:17 -0500 |
commit | dfefeb543866eb74e0668fdec1fe496bb9ffb860 (patch) | |
tree | 0d1ce9d969dcc293c5e4094c85d9b7b21981d793 /src/serial.c | |
parent | d43e1788502dc99d46bb634424ac70137874f517 (diff) | |
download | seabios-hppa-dfefeb543866eb74e0668fdec1fe496bb9ffb860.zip seabios-hppa-dfefeb543866eb74e0668fdec1fe496bb9ffb860.tar.gz seabios-hppa-dfefeb543866eb74e0668fdec1fe496bb9ffb860.tar.bz2 |
Distinguish between debug reports for unimplemented vs invalid calls.
Don't use "fail" in the debug output - as this confuses users.
When reporting on an invalid parameter - use the word "invalid".
When reporting on an unimplemented call - state it is unimplemented.
Add separate debug levels for unimplemented vs invalid calls.
Also, increase the debug level of several entry points.
Diffstat (limited to 'src/serial.c')
-rw-r--r-- | src/serial.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/serial.c b/src/serial.c index 19e39ca..493d421 100644 --- a/src/serial.c +++ b/src/serial.c @@ -79,12 +79,12 @@ static u16 getComAddr(struct bregs *regs) { if (regs->dx >= 4) { - set_fail(regs); + set_invalid(regs); return 0; } u16 addr = GET_BDA(port_com[regs->dx]); if (! addr) - set_fail(regs); + set_invalid(regs); return addr; } @@ -178,8 +178,7 @@ handle_1403(struct bregs *regs) static void handle_14XX(struct bregs *regs) { - // Unsupported - set_fail(regs); + set_unimplemented(regs); } // INT 14h Serial Communications Service Entry Point @@ -245,12 +244,12 @@ static u16 getLptAddr(struct bregs *regs) { if (regs->dx >= 3) { - set_fail(regs); + set_invalid(regs); return 0; } u16 addr = GET_BDA(port_lpt[regs->dx]); if (! addr) - set_fail(regs); + set_invalid(regs); return addr; } @@ -319,8 +318,7 @@ handle_1702(struct bregs *regs) static void handle_17XX(struct bregs *regs) { - // Unsupported - set_fail(regs); + set_unimplemented(regs); } // INT17h : Printer Service Entry Point |