]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 8 Sep 2010 14:15:57 +0000 (16:15 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 8 Sep 2010 14:15:57 +0000 (16:15 +0200)
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
Use terminfo and don't use cursor-on/cursor-off unless it's known
to work.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.

ChangeLog
grub-core/kern/ieee1275/cmain.c
include/grub/ieee1275/ieee1275.h

index 0bb728b6b6e7881cf409fcdf75fd4c3e053e73fa..d8818585b3f1455c73ff2d88d76dcc4d11b38e8f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-09-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
+       GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
+       * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
+       Use terminfo and don't use cursor-on/cursor-off unless it's known
+       to work.
+       * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
+       GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
+
 2010-09-08  Colin Watson  <cjwatson@ubuntu.com>
 
        * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
index d3c3a8d88159e6d215a18208d4db7448778e68e0..30eacbbddaccb5e02aca70f404aec21d046a1302 100644 (file)
@@ -138,11 +138,16 @@ grub_ieee1275_find_options (void)
       */
 
       grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY);
+      grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_HAS_CURSORONOFF);
     }
 
   if (is_qemu)
-    /* OpenFirmware hangs on qemu if one requests any memory below 1.5 MiB.  */
-    grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM);
+    {
+      /* OpenFirmware hangs on qemu if one requests any memory below 1.5 MiB.  */
+      grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM);
+
+      grub_ieee1275_set_flag (GRUB_IEEE1275_FLAG_HAS_CURSORONOFF);
+    }
 
   if (! grub_ieee1275_finddevice ("/rom/boot-rom", &bootrom))
     {
index b30909c68f4dc6169c6a0f46e9d38f74b7572c03..6835b5abcb69608567da96023fbd146f6dd848d8 100644 (file)
@@ -103,6 +103,9 @@ enum grub_ieee1275_flag
 
   /* OpenFirmware hangs on qemu if one requests any memory below 1.5 MiB.  */
   GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM,
+
+  /* OLPC / XO firmware has the cursor ON/OFF routines.  */
+  GRUB_IEEE1275_FLAG_HAS_CURSORONOFF,
 };
 
 extern int EXPORT_FUNC(grub_ieee1275_test_flag) (enum grub_ieee1275_flag flag);