[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFT] [PATCH] Use call-method and not interpret for cursor-on/cursor-off
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
[RFT] [PATCH] Use call-method and not interpret for cursor-on/cursor-off |
Date: |
Mon, 08 Feb 2010 12:22:36 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20091109) |
This should make cursor-on/-off cleaner
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
=== 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
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [RFT] [PATCH] Use call-method and not interpret for cursor-on/cursor-off,
Vladimir 'φ-coder/phcoder' Serbinenko <=