diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-07-19 14:12:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-07-19 14:12:32 -0400 |
commit | 65e63420e588f72ac2849f09d43483f8097e24fe (patch) | |
tree | 8e3f4ccaa1ed2462899f8e1a5af0c68da061e477 /src/mouse.c | |
parent | 7ab798f9071abb4566e164fc25fb22d179c8f767 (diff) | |
download | seabios-hppa-65e63420e588f72ac2849f09d43483f8097e24fe.zip seabios-hppa-65e63420e588f72ac2849f09d43483f8097e24fe.tar.gz seabios-hppa-65e63420e588f72ac2849f09d43483f8097e24fe.tar.bz2 |
Misc fixes and updates.
Minor code cleanups.
Fix parenthesis imbalance in keyboard led test.
The printf() call is only used in 32bit mode - make this explicit to
the compiler - it improves the code generation.
Clear the screen after initializing the vga option rom.
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mouse.c b/src/mouse.c index 08beafe..cb471db 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -384,7 +384,8 @@ int74_function() u8 mouse_flags_1 = GET_EBDA(mouse_flag1); u8 mouse_flags_2 = GET_EBDA(mouse_flag2); - if ((mouse_flags_2 & 0x80) != 0x80) + if (! (mouse_flags_2 & 0x80)) + // far call handler not installed return; u8 package_count = mouse_flags_2 & 0x07; @@ -402,9 +403,6 @@ int74_function() u16 X = GET_EBDA(mouse_data[1]); u16 Y = GET_EBDA(mouse_data[2]); SET_EBDA(mouse_flag1, 0); - // check if far call handler installed - if (! (mouse_flags_2 & 0x80)) - return; u32 func = GET_EBDA(far_call_pointer); asm volatile( |