From: Kevin O'Connor Date: Sun, 29 Jan 2012 17:25:46 +0000 (-0500) Subject: Check for CONFIG_PS2PORT on all entry ps2 function entry points. X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=commitdiff_plain;h=e216ce8fb5470a375756574d65723cbf764a2919 Check for CONFIG_PS2PORT on all entry ps2 function entry points. Signed-off-by: Kevin O'Connor --- diff --git a/src/ps2port.c b/src/ps2port.c index 58335af..1f04299 100644 --- a/src/ps2port.c +++ b/src/ps2port.c @@ -132,6 +132,8 @@ i8042_aux_write(u8 c) void i8042_reboot(void) { + if (! CONFIG_PS2PORT) + return; int i; for (i=0; i<10; i++) { i8042_wait_write(); @@ -322,12 +324,17 @@ ps2_command(int aux, int command, u8 *param) int ps2_kbd_command(int command, u8 *param) { + if (! CONFIG_PS2PORT) + return -1; return ps2_command(0, command, param); } int ps2_mouse_command(int command, u8 *param) { + if (! CONFIG_PS2PORT) + return -1; + // Update ps2ctr for mouse enable/disable. if (command == PSMOUSE_CMD_ENABLE || command == PSMOUSE_CMD_DISABLE) { u16 ebda_seg = get_ebda_seg();