: Fix multiboot2 build on sparc
PATCH 5/10 : Fix multiboot2 build on sparc
2009-03-03 David S. Miller <[email protected]>
* loader/ieee1275/multiboot2.c (grub_mb2_arch_boot): Handle sparc like powerpc.
--- loader/ieee1275/multiboot2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
loader/ieee1275/multiboot2.c +1 -1
@@ -115,7 +115,7 @@ grub_mb2_arch_unload (struct multiboot_tag_header *tags)void grub_mb2_arch_boot (grub_addr_t entry_addr,void *tags) { -#if defined(__powerpc__) +#if defined(__powerpc__) || defined(__sparc__)kernel_entry_t entry = (kernel_entry_t ) entry_addr;entry (MULTIBOOT2_BOOTLOADER_MAGIC , tags, grub_ieee1275_entry_fn,0 ,0 );#elif defined(__i386__)
Signature · 1 line
1.6.2
Quoted 14 lines · David Miller
2009-03-03 David S. Miller <[email protected]>
*
loader/ieee1275/multiboot2.c(grub_mb2_arch_boot): Handle sparc like powerpc.--- loader/ieee1275/multiboot2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)loader/ieee1275/multiboot2.c +0
-0
loader/ieee1275/multiboot2.c grub_mb2_arch_unload (struct multiboot_tag_header *tags) · line 121
Quoted 8 lines
loader/ieee1275/multiboot2.c +1
-1@@ -115,7 +115,7 @@ grub_mb2_arch_unload (struct multiboot_tag_header *tags)void grub_mb2_arch_boot (grub_addr_t entry_addr,void *tags) { -#if defined(__powerpc__) +#if defined(__powerpc__) || defined(__sparc__)kernel_entry_t entry = (kernel_entry_t ) entry_addr;entry (MULTIBOOT2_BOOTLOADER_MAGIC , tags, grub_ieee1275_entry_fn,0 ,0 );#elif defined(__i386__)
I'd rather refrain from enabling multiboot2 on sparc for now. The current multiboot2 implementation needs a lot of work to be resynced/factorized with the multiboot1 one. I'd expect it'd have to be almost replaced completely.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."