mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
coreboot
This commit is contained in:
1 parent
f9ee0c3e5d
commit
869a0bc476
5 files changed
+11
-5
No files matched your search
@@ -128,6 +128,8 @@ reloc_done:
|
||||
|
||||
str r1, EXT_C(grub_modbase)
|
||||
|
||||
/* Coreboot already places modules at right place. */
|
||||
#ifndef GRUB_MACHINE_COREBOOT
|
||||
add r1, r1, r2
|
||||
add r0, r0, r2
|
||||
sub r1, r1, #4
|
||||
@@ -137,6 +139,7 @@ reloc_done:
|
||||
str r3, [r1], #-4 @ *dst-- = r3
|
||||
subs r2, #4 @ remaining -= 4
|
||||
bne 1b @ while remaining != 0
|
||||
#endif
|
||||
|
||||
@ Since we _are_ the C run-time, we need to manually zero the BSS
|
||||
@ region before continuing
|
||||
|
||||
@@ -36,6 +36,6 @@ void grub_machine_timer_init (void);
|
||||
void grub_pl050_init (void);
|
||||
#endif /* ! ASM_FILE */
|
||||
|
||||
#define GRUB_KERNEL_MACHINE_STACK_SIZE 0x40000
|
||||
#define GRUB_KERNEL_MACHINE_STACK_SIZE GRUB_KERNEL_ARM_STACK_SIZE
|
||||
|
||||
#endif /* ! GRUB_KERNEL_MACHINE_HEADER */
|
||||
@@ -71,7 +71,8 @@ enum
|
||||
GRUB_LINUXBIOS_MEMBER_LINK = 0x11,
|
||||
GRUB_LINUXBIOS_MEMBER_FRAMEBUFFER = 0x12,
|
||||
GRUB_LINUXBIOS_MEMBER_TIMESTAMPS = 0x16,
|
||||
GRUB_LINUXBIOS_MEMBER_CBMEMC = 0x17
|
||||
GRUB_LINUXBIOS_MEMBER_CBMEMC = 0x17,
|
||||
GRUB_LINUXBIOS_MEMBER_DTB = 0x33,
|
||||
};
|
||||
|
||||
struct grub_linuxbios_table_framebuffer {
|
||||
|
||||
@@ -109,7 +109,6 @@
|
||||
#define GRUB_KERNEL_I386_COREBOOT_MOD_GAP 0x0
|
||||
#define GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP 0x0
|
||||
#define GRUB_KERNEL_ARM_UBOOT_MOD_GAP 0x0
|
||||
#define GRUB_KERNEL_ARM_COREBOOT_MOD_GAP 0x0
|
||||
|
||||
#define GRUB_KERNEL_POWERPC_IEEE1275_MOD_ALIGN 0x1000
|
||||
#define GRUB_KERNEL_SPARC64_IEEE1275_LOG_MOD_ALIGN 3
|
||||
@@ -124,6 +123,9 @@
|
||||
#define GRUB_KERNEL_ARM_COREBOOT_MOD_ALIGN 0x8
|
||||
#define GRUB_KERNEL_ARM_COREBOOT_TOTAL_MODULE_SIZE 0x4
|
||||
|
||||
#define GRUB_KERNEL_ARM_STACK_SIZE 0x40000
|
||||
#define GRUB_KERNEL_ARM_COREBOOT_MOD_GAP (GRUB_KERNEL_ARM_STACK_SIZE + 1024)
|
||||
|
||||
/* Minimal gap between _end and the start of the modules. It's a hack
|
||||
for PowerMac to prevent "CLAIM failed" error. The real fix is to
|
||||
rewrite grub-mkimage to generate valid ELF files. */
|
||||
|
||||
+2
-2
@@ -548,8 +548,8 @@ static const struct grub_install_image_target_desc image_targets[] =
|
||||
.mod_gap = GRUB_KERNEL_ARM_COREBOOT_MOD_GAP,
|
||||
.mod_align = GRUB_KERNEL_ARM_COREBOOT_MOD_ALIGN,
|
||||
.link_align = 4,
|
||||
/* FIXME: Remove once coreboot supports load to any address. */
|
||||
.link_addr = 0x60100000,
|
||||
/* FIXME: Kept only for comaptibility with existing coreboot installs. */
|
||||
.link_addr = 0x43000000,
|
||||
},
|
||||
{
|
||||
.dirname = "arm-efi",
|
||||
|
||||
Reference in new issue
Block a user