grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Patch for the open hackware


From: Robert Millan
Subject: Re: [PATCH] Patch for the open hackware
Date: Tue, 17 Jun 2008 19:39:00 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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 /.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]