All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Patch for the open hackware
Date: Tue, 17 Jun 2008 19:39:00 +0200	[thread overview]
Message-ID: <20080617173900.GA21729@thorin> (raw)
In-Reply-To: <ca0f59980806170844g2e67b35bt5f76b732ee170d2e@mail.gmail.com>

On Tue, Jun 17, 2008 at 11:44:36PM +0800, Bean wrote:
> +  if (grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_CANNOT_INTERPRET))
> +    {
> +      grub_addr_t addr;
> +      grub_uint32_t len;
> +
> +      addr = HEAP_MAX_ADDR - HEAP_MIN_SIZE;
> +      len = HEAP_MIN_SIZE;
> +
> +      if (grub_claimmap (addr, len) < 0)
> +        return grub_error (GRUB_ERR_OUT_OF_MEMORY,
> +                           "Failed to claim heap at 0x%llx, len 0x%llx\n",
> +                           addr, len);
> +
> +      grub_mm_init_region ((void *) addr, len);
> +    }
> +  else
> +    grub_available_iterate (heap_init);
>  }

This skips all the checks in heap_init(), which were intended for situations
that could also apply to Open Hackware.  Would be better if you call
heap_init() with the desired parameters instead.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)



  parent reply	other threads:[~2008-06-17 17:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17 15:44 [PATCH] Patch for the open hackware Bean
2008-06-17 16:02 ` Pavel Roskin
2008-06-17 17:16   ` Bean
2008-06-17 17:39 ` Robert Millan [this message]
2008-06-17 17:45   ` Bean
2008-06-30 10:08     ` Bean
2008-06-30 16:23       ` Pavel Roskin
2008-07-01 15:56         ` Robert Millan
2008-07-02  7:39           ` Bean

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=20080617173900.GA21729@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.