[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When PC BIOS reports overlapped memory regions, GRUB2 works wrong.
From: |
Yoshinori K. Okuji |
Subject: |
Re: When PC BIOS reports overlapped memory regions, GRUB2 works wrong. |
Date: |
Mon, 3 Sep 2007 22:33:45 +0200 |
User-agent: |
KMail/1.9.4 |
On Thursday 12 April 2007 16:13, Hitoshi Ozeki wrote:
> I write below a more right code.
>
> -begin----------------------------------
> /* Merge overlaps. */
> for (i = 0; i < num_regions - 1; i++)
> if (mem_regions[i].addr + mem_regions[i].size >= mem_regions[i +
> 1].addr)
> {
> j = i + 1;
>
> if (mem_regions[i].addr + mem_regions[i].size
> < mem_regions[j].addr + mem_regions[j].size)
> mem_regions[i].size = (mem_regions[j].addr + mem_regions[j].size
> - mem_regions[i].addr);
>
> grub_memmove (mem_regions + j, mem_regions + j + 1,
> (num_regions - j - 1) * sizeof (struct mem_region));
> i--;
> num_regions--;
> }
> -end------------------------------------
Applied. Thank you.
Okuji
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: When PC BIOS reports overlapped memory regions, GRUB2 works wrong.,
Yoshinori K. Okuji <=