* [RFT] [PATCH] Use call-method and not interpret for cursor-on/cursor-off
@ 2010-02-08 11:22 Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 0 replies; only message in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2010-02-08 11:22 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1.1: Type: text/plain, Size: 99 bytes --]
This should make cursor-on/-off cleaner
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: cursor.diff --]
[-- Type: text/x-diff; name="cursor.diff", Size: 932 bytes --]
=== modified file 'term/ieee1275/ofconsole.c'
--- term/ieee1275/ofconsole.c 2010-01-22 19:42:02 +0000
+++ term/ieee1275/ofconsole.c 2010-02-08 11:06:56 +0000
@@ -322,10 +322,26 @@
grub_ofconsole_setcursor (int on)
{
/* Understood by the Open Firmware flavour in OLPC. */
+
+ struct cursor_args
+ {
+ struct grub_ieee1275_common_hdr common;
+ grub_ieee1275_cell_t method;
+ grub_ieee1275_cell_t device;
+ grub_ieee1275_cell_t catch_result;
+ }
+ args;
+ int status;
+
+ INIT_IEEE1275_COMMON (&args.common, "call-method", 2, 1);
+ args.device = (grub_ieee1275_cell_t) stdout_ihandle;
+
if (on)
- grub_ieee1275_interpret ("cursor-on", 0);
+ args.method = (grub_ieee1275_cell_t) "cursor-on";
else
- grub_ieee1275_interpret ("cursor-off", 0);
+ args.method = (grub_ieee1275_cell_t) "cursor-off";
+
+ status = IEEE1275_CALL_ENTRY_FN (&args);
}
static void
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-08 11:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08 11:22 [RFT] [PATCH] Use call-method and not interpret for cursor-on/cursor-off Vladimir 'φ-coder/phcoder' Serbinenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.