* kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
is larger than address_cells, use that value for address_cells too.
This commit is contained in:
parent
0aefc632d9
commit
f01005a832
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-04-22 David S. Miller <davem@davemloft.net>
|
||||
|
||||
* kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
|
||||
is larger than address_cells, use that value for address_cells too.
|
||||
|
||||
2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Correct GPT definition
|
||||
|
|
|
@ -38,6 +38,9 @@ grub_machine_mmap_iterate (int NESTED_FUNC_ATTR (*hook) (grub_uint64_t, grub_uin
|
|||
grub_ieee1275_get_integer_property (root, "#size-cells", &size_cells,
|
||||
sizeof size_cells, 0);
|
||||
|
||||
if (size_cells > address_cells)
|
||||
address_cells = size_cells;
|
||||
|
||||
/* Load `/memory/available'. */
|
||||
if (grub_ieee1275_finddevice ("/memory", &memory))
|
||||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
||||
|
|
Loading…
Reference in a new issue