aboutsummaryrefslogtreecommitdiff
path: root/src/mouse.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-08-17 11:26:42 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-08-17 11:26:42 -0400
commitf13b008bddadc750167c7e814bab0cdfd75178eb (patch)
tree4e6692efa53335194f2c370d18937c5545e08d06 /src/mouse.c
parentcbffa8ed98f0e87d7c926594fe73f6e56e86da5f (diff)
downloadseabios-hppa-f13b008bddadc750167c7e814bab0cdfd75178eb.zip
seabios-hppa-f13b008bddadc750167c7e814bab0cdfd75178eb.tar.gz
seabios-hppa-f13b008bddadc750167c7e814bab0cdfd75178eb.tar.bz2
Misc minor improvements.
Update TODO list. Improve comments in boot.c. Use debug port 0x0402 instead of 0x0403 (bochs prefers the latter). Fix formatting of debug messages in kbd.c. Use proper return check for kbd and mouse init.
Diffstat (limited to 'src/mouse.c')
-rw-r--r--src/mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mouse.c b/src/mouse.c
index 7a74eba..1435c92 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -97,7 +97,7 @@ mouse_15c201(struct bregs *regs)
{
u8 param[2];
int ret = aux_command(PSMOUSE_CMD_RESET_BAT, param);
- if (ret < 0) {
+ if (ret != 0 && ret != 2) {
set_code_fail(regs, RET_ENEEDRESEND);
return;
}