mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
Use kseg0 entry address on mips
This commit is contained in:
1 parent
6d387bafaf
commit
506e4d1e7f
1 file changed
+8
@@ -140,6 +140,14 @@ CONCAT(grub_multiboot_load_elf, XX) (grub_file_t file, void *buffer)
|
|||||||
if (i == ehdr->e_phnum)
|
if (i == ehdr->e_phnum)
|
||||||
return grub_error (GRUB_ERR_BAD_OS, "entry point isn't in a segment");
|
return grub_error (GRUB_ERR_BAD_OS, "entry point isn't in a segment");
|
||||||
|
|
||||||
|
#if defined (__i386__) || defined (__x86_64__)
|
||||||
|
|
||||||
|
#elif defined (__mips)
|
||||||
|
grub_multiboot_payload_eip |= 0x80000000;
|
||||||
|
#else
|
||||||
|
#error Please complete this
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ehdr->e_shnum)
|
if (ehdr->e_shnum)
|
||||||
{
|
{
|
||||||
grub_uint8_t *shdr, *shdrptr;
|
grub_uint8_t *shdr, *shdrptr;
|
||||||
|
|||||||
Reference in new issue
Block a user