From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NeRhh-0005Pk-9q for mharc-grub-devel@gnu.org; Mon, 08 Feb 2010 06:22:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeRhe-0005Ol-6Y for grub-devel@gnu.org; Mon, 08 Feb 2010 06:22:54 -0500 Received: from [199.232.76.173] (port=38636 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeRhd-0005OW-Fd for grub-devel@gnu.org; Mon, 08 Feb 2010 06:22:53 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeRhX-0002Zg-Ut for grub-devel@gnu.org; Mon, 08 Feb 2010 06:22:53 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:36134) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeRhX-0002ZL-Km for grub-devel@gnu.org; Mon, 08 Feb 2010 06:22:47 -0500 Received: by ewy28 with SMTP id 28so1861330ewy.8 for ; Mon, 08 Feb 2010 03:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=18VCGj6UV8yj9CXVUkf5u9H8rE+UEdCmTQb0s5F50yM=; b=mdYpHaTNw+CSEtFAhcZC5QkUnYxMbxQh2D3VSal35OQgXXPIvpG3CSrhEa+e7l4OS5 xXmJGIy49Gwj/tukORSgNcEfKutJj0jbyvW3XA44s13/6QYWl1J/U3x9/CTS98sZ3ubl wVkf/thRaieSUGQrDohamdPAbKQuQ4D+a6SGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=hN3rguZh87mGF72lyFzWC0RGZa29GEYIsXTSAaRgk1A7K2CFaGqpmFboeUj0kaDkg7 h5T6THui07coUE1uMAPBmbqKUmcDH4paw6P8+/kWRQkABszIpyPFEAnhBFlyn7M2ydeo SucGXwIQHqDrF94f6fJTWXWtTY36y2NJs31X4= Received: by 10.213.97.25 with SMTP id j25mr3730976ebn.12.1265628165089; Mon, 08 Feb 2010 03:22:45 -0800 (PST) Received: from debian.bg45.phnet (26-170.203-62.cust.bluewin.ch [62.203.170.26]) by mx.google.com with ESMTPS id 28sm6437702eyg.36.2010.02.08.03.22.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Feb 2010 03:22:44 -0800 (PST) Message-ID: <4B6FF3FC.10003@gmail.com> Date: Mon, 08 Feb 2010 12:22:36 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GRUB 2 X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig03CCB6EAEFC9687612FB3910" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [RFT] [PATCH] Use call-method and not interpret for cursor-on/cursor-off X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2010 11:22:54 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig03CCB6EAEFC9687612FB3910 Content-Type: multipart/mixed; boundary="------------080509010105070907010208" This is a multi-part message in MIME format. --------------080509010105070907010208 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This should make cursor-on/-off cleaner --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------080509010105070907010208 Content-Type: text/x-diff; name="cursor.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="cursor.diff" =3D=3D=3D 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 =3D (grub_ieee1275_cell_t) stdout_ihandle; + if (on) - grub_ieee1275_interpret ("cursor-on", 0); + args.method =3D (grub_ieee1275_cell_t) "cursor-on"; else - grub_ieee1275_interpret ("cursor-off", 0); + args.method =3D (grub_ieee1275_cell_t) "cursor-off"; + + status =3D IEEE1275_CALL_ENTRY_FN (&args); } =20 static void --------------080509010105070907010208-- --------------enig03CCB6EAEFC9687612FB3910 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAktv9AIACgkQNak7dOguQgnvQgD+LYDufq29qrUGO0fz32eIpLtT kDMc00T/LHgOPmxzFjYA/1viKzef8WPOtSr5wTa0CVGiVQmjQu8wnKw4bBpJAGdx =MgqA -----END PGP SIGNATURE----- --------------enig03CCB6EAEFC9687612FB3910--