arm: Move initrd upper to leave more space for kernel
This patch allows to have bigger kernels. If the kernel grows, then it will overwrite the initrd when it is extracted. Signed-off-by: Guillaume GARDET <guillaume.gardet@arm.com> Acked-by: Alexander Graf <agraf@suse.de> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
a0e4ee533d
commit
748e544fd0
2 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ static const void *current_fdt;
|
|||
typedef void (*kernel_entry_t) (int, unsigned long, void *);
|
||||
|
||||
#define LINUX_PHYS_OFFSET (0x00008000)
|
||||
#define LINUX_INITRD_PHYS_OFFSET (LINUX_PHYS_OFFSET + 0x02000000)
|
||||
#define LINUX_INITRD_PHYS_OFFSET (LINUX_PHYS_OFFSET + 0x03000000)
|
||||
#define LINUX_FDT_PHYS_OFFSET (LINUX_INITRD_PHYS_OFFSET - 0x10000)
|
||||
|
||||
static grub_size_t
|
||||
|
|
|
@ -42,7 +42,7 @@ struct linux_arm_kernel_header {
|
|||
#if defined GRUB_MACHINE_UBOOT
|
||||
# include <grub/uboot/uboot.h>
|
||||
# define LINUX_ADDRESS (start_of_ram + 0x8000)
|
||||
# define LINUX_INITRD_ADDRESS (start_of_ram + 0x02000000)
|
||||
# define LINUX_INITRD_ADDRESS (start_of_ram + 0x03000000)
|
||||
# define LINUX_FDT_ADDRESS (LINUX_INITRD_ADDRESS - 0x10000)
|
||||
# define grub_arm_firmware_get_boot_data grub_uboot_get_boot_data
|
||||
# define grub_arm_firmware_get_machine_type grub_uboot_get_machine_type
|
||||
|
@ -50,7 +50,7 @@ struct linux_arm_kernel_header {
|
|||
#include <grub/fdtbus.h>
|
||||
#include <grub/arm/coreboot/kernel.h>
|
||||
# define LINUX_ADDRESS (start_of_ram + 0x8000)
|
||||
# define LINUX_INITRD_ADDRESS (start_of_ram + 0x02000000)
|
||||
# define LINUX_INITRD_ADDRESS (start_of_ram + 0x03000000)
|
||||
# define LINUX_FDT_ADDRESS (LINUX_INITRD_ADDRESS - 0x10000)
|
||||
static inline const void *
|
||||
grub_arm_firmware_get_boot_data (void)
|
||||
|
|
Loading…
Reference in a new issue