* grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-12-15 20:05:27 +01:00
parent 3a38c67235
commit 813c0a2be8
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
2011-12-15 Vladimir Serbinenko <phcoder@gmail.com> 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts. Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.

View file

@ -309,7 +309,7 @@ grub_cmd_module (grub_command_t cmd __attribute__ ((unused)),
return err; return err;
} }
module = get_virtual_current_address (ch); module = get_virtual_current_address (ch);
target = (grub_addr_t) get_virtual_current_address (ch); target = get_physical_target_address (ch);
} }
err = grub_multiboot_add_module (target, size, argc - 1, argv + 1); err = grub_multiboot_add_module (target, size, argc - 1, argv + 1);