From: Vladimir 'phcoder' Serbinenko Date: Sat, 16 Oct 2010 23:49:06 +0000 (+0200) Subject: * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check X-Git-Tag: 1.99~376 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7bced4583e072271583ba2ee28f054dd025ec152;p=thirdparty%2Fgrub.git * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check cursor shape for sanity. --- diff --git a/ChangeLog b/ChangeLog index fbd4b2752..128c5f959 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-10-17 Vladimir Serbinenko + + * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check + cursor shape for sanity. + 2010-10-17 Vladimir Serbinenko * docs/grub.texi (Installation): Document buggy BIOS install. diff --git a/grub-core/kern/i386/pc/startup.S b/grub-core/kern/i386/pc/startup.S index e03fc8301..6b43d9f14 100644 --- a/grub-core/kern/i386/pc/startup.S +++ b/grub-core/kern/i386/pc/startup.S @@ -820,6 +820,10 @@ FUNCTION(grub_console_setcursor) DATA32 call real_to_prot .code32 + cmp %cl, %ch + jb 3f + movw $0x0d0e, %cx +3: movw %cx, console_cursor_shape 1: /* set %cx to the designated cursor shape */