Add mips multiboot2 mbi address calculation
This commit is contained in:
parent
ffadea42bb
commit
262d4a94a0
1 changed files with 6 additions and 0 deletions
|
@ -489,7 +489,13 @@ grub_multiboot_make_mbi (grub_uint32_t *target)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
ptrorig = get_virtual_current_address (ch);
|
ptrorig = get_virtual_current_address (ch);
|
||||||
|
#if defined (__i386__) || defined (__x86_64__)
|
||||||
*target = get_physical_target_address (ch);
|
*target = get_physical_target_address (ch);
|
||||||
|
#elif defined (__mips)
|
||||||
|
*target = get_physical_target_address (ch) | 0x80000000;
|
||||||
|
#else
|
||||||
|
#error Please complete this
|
||||||
|
#endif
|
||||||
|
|
||||||
mbistart = ptrorig;
|
mbistart = ptrorig;
|
||||||
ptrorig += 2 * sizeof (grub_uint32_t);
|
ptrorig += 2 * sizeof (grub_uint32_t);
|
||||||
|
|
Loading…
Reference in a new issue