mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* 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:
1 parent
0aefc632d9
commit
f01005a832
2 files changed
+8
No files matched your search
@@ -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>
|
2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Correct GPT definition
|
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,
|
grub_ieee1275_get_integer_property (root, "#size-cells", &size_cells,
|
||||||
sizeof size_cells, 0);
|
sizeof size_cells, 0);
|
||||||
|
|
||||||
|
if (size_cells > address_cells)
|
||||||
|
address_cells = size_cells;
|
||||||
|
|
||||||
/* Load `/memory/available'. */
|
/* Load `/memory/available'. */
|
||||||
if (grub_ieee1275_finddevice ("/memory", &memory))
|
if (grub_ieee1275_finddevice ("/memory", &memory))
|
||||||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
return grub_error (GRUB_ERR_UNKNOWN_DEVICE,
|
||||||
|
|||||||
Reference in new issue
Block a user