From: Robert Millan <rmh@aybabtu.com>
To: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Cc: grub-devel@gnu.org
Subject: Re: Fwd: [PATCH] gfxpayload
Date: Sat, 30 May 2009 21:41:01 +0200 [thread overview]
Message-ID: <20090530194101.GA24539@thorin> (raw)
In-Reply-To: <d7ead6de0905300823u65ab7675h1c6e59b7d76f16be@mail.gmail.com>
On Sat, May 30, 2009 at 05:23:18PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> On Sun, May 17, 2009 at 10:36 PM, Robert Millan <rmh@aybabtu.com> wrote:
> >
> > Hi,
> >
> > On Sun, May 17, 2009 at 04:34:16PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> >> #ifndef GRUB_ASSUME_LINUX_HAS_FB_SUPPORT
> >> -#define GRUB_ASSUME_LINUX_HAS_FB_SUPPORT 0
> >> +#define DEFAULT_VIDEO_MODE "text"
> >> +#else
> >> +#define DEFAULT_VIDEO_MODE "keep"
> >> #endif
> >
> > As discussed on IRC, this "keep" option seems unnecessary; it just means
> > "do nothing" so we may as well #ifdef the code out.
> It may be necessary in future for linux loader to be able to check if
> current mode is acceptable for linux (e.g. vnc is not). xnu code does
> this (text mode isn't acceptable). But for now calling with keep can
> be put in ifdef..endif
Maybe, but there's no point in some part of GRUB telling another routine
"please do nothing, leave things as they are" when it could just not call
it instead. It just wastes execution time.
> >> + grub_error (GRUB_ERR_OUT_OF_MEMORY,
> >> + "couldn't allocate temporary storage");
> >> + goto fail;
> >> + }
> >
> > Doesn't grub_malloc set this errno / errmsg already?
> >
> It says "out of memory" but I guess it should be clear enough.
If it's not, it should be fixed in kern/mm.c. There's nothing specific to
linux.c in this problem.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
prev parent reply other threads:[~2009-05-30 19:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-16 18:01 [PATCH] gfxpayload Vladimir 'phcoder' Serbinenko
2009-05-16 18:20 ` Felix Zielcke
2009-05-17 12:35 ` Vladimir 'phcoder' Serbinenko
[not found] ` <d7ead6de0905170734u4a13d1ebl3f4686011eeef698@mail.gmail.com>
2009-05-17 20:36 ` Fwd: " Robert Millan
2009-05-18 15:09 ` Colin D Bennett
[not found] ` <d7ead6de0905300823u65ab7675h1c6e59b7d76f16be@mail.gmail.com>
2009-05-30 19:41 ` 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=20090530194101.GA24539@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
--cc=phcoder@gmail.com \
/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.