From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Running GRUB under qemu on PowerPC
Date: Wed, 23 Jan 2008 12:22:57 +0100 [thread overview]
Message-ID: <20080123112257.GD25594@thorin> (raw)
In-Reply-To: <87sl0ore9e.fsf@xs4all.nl>
On Wed, Jan 23, 2008 at 12:07:57PM +0100, Marco Gerards wrote:
> Pavel Roskin <proski@gnu.org> writes:
>
> Hi,
>
> [...]
>
> > ChangeLog:
> >
> > * include/grub/ieee1275/ieee1275.h: Introduce a flag for
> > broken color support, needed for Open Hack'Ware.
> > * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
> > Recognize Open Hack'Ware.
> > * term/ieee1275/ofconsole.c (grub_ofconsole_init): Skip color
> > initialization for Open Hack'Ware.
>
> This looks fine to me. Robert, what do you think about this patch
> specifically? I see no reason why this can't be committed, but I am
> not working on the PPC port lately.
It looks mostly fine to me. I have 3 suggestions:
> + if (! grub_ieee1275_finddevice ("/rom/boot-rom", &bootrom)) {
> + rc = grub_ieee1275_get_property (bootrom, "model",
> + tmp, sizeof (tmp), 0);
> +#define OHW "PPC Open Hack'Ware"
> + if (rc >= 0 && !grub_strncmp (tmp, OHW, sizeof (OHW) - 1)) {
I think it's better to #undef OHW after using it, just in case.
> - /* Set the right fg and bg colors. */
> - grub_ofconsole_setcolorstate (GRUB_TERM_COLOR_NORMAL);
> + if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_BROKEN_COLORS)) {
Perhaps GRUB_IEEE1275_FLAG_BROKEN_COLORS could be made more descriptive
(in the future we might find other, new, amusing ways in which colors can
break! :-)). How about GRUB_IEEE1275_FLAG_CANNOT_SET_COLORS ?
Also, GRUB code style puts a newline before opening brackets.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
prev parent reply other threads:[~2008-01-23 11:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 8:19 [PATCH] Running GRUB under qemu on PowerPC Pavel Roskin
2008-01-16 10:40 ` Robert Millan
2008-01-16 18:22 ` Pavel Roskin
2008-01-16 19:33 ` Robert Millan
2008-01-16 21:52 ` Pavel Roskin
2008-01-16 22:51 ` Robert Millan
2008-01-18 5:07 ` Pavel Roskin
2008-01-18 15:05 ` Robert Millan
2008-01-23 11:07 ` Marco Gerards
2008-01-23 11:22 ` Robert Millan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080123112257.GD25594@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.