early microcode: extend the ramdisk address to 64bit
Subsystems (2)
PATCH 1/1 early microcode: extend the ramdisk address to 64bit
From: Harald Hoyer <[email protected]>
commit 4bf7111f50167133a71c23530ca852a41355e739 enabled loading of the initramfs above 4G addresses. So I was wondering, if the early microcode code might want to honor the upper 32bit of the 64bit address.
Signed-off-by Harald Hoyer <[email protected]>
--- arch/x86/kernel/cpu/microcode/amd_early.c | 1 + arch/x86/kernel/cpu/microcode/intel_early.c | 1 + 2 files changed, 2 insertions(+)
arch/x86/kernel/cpu/microcode/amd_early.c +1 -0
@@ -56,6 +56,7 @@ static struct cpio_data __init find_ucode_in_initrd(void)#else path = ucode_path; start = (void *)(boot_params.hdr.ramdisk_image +PAGE_OFFSET ); + start |= (void *)boot_params.ext_ramdisk_image <<32 ; size = boot_params.hdr.ramdisk_size;#endif
arch/x86/kernel/cpu/microcode/intel_early.c +1 -0
@@ -744,6 +744,7 @@ load_ucode_intel_bsp(void) initrd_start_early, initrd_end_early, &uci);#else ramdisk_image = boot_params.hdr.ramdisk_image; + ramdisk_image |= (u64 )boot_params.ext_ramdisk_image <<32 ; ramdisk_size = boot_params.hdr.ramdisk_size; initrd_start_early = ramdisk_image +PAGE_OFFSET ; initrd_end_early = initrd_start_early + ramdisk_size;
Signature · 1 line
2.1.0
Quoted 6 lines · On Fri, Aug 22, 2014 at 6:59 AM, <[email protected]> wrote:
From: Harald Hoyer <[email protected]>
commit
4bf7111f50167133a71c23530ca852a41355e739enabled loading of the initramfs above 4G addresses. So I was wondering, if the early microcode code might want to honor the upper 32bit of the 64bit address.