]> git.baikalelectronics.ru Git - kernel.git/commit
x86/microcode/AMD: Reload proper initrd start address
authorBorislav Petkov <bp@suse.de>
Tue, 20 Dec 2016 10:54:30 +0000 (11:54 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 21 Dec 2016 09:50:04 +0000 (10:50 +0100)
commit9d7c4cdf53aa23deae8ca54931a319e1fab78dbf
treedf05f341d7dcde40147e69745dcb3a2b2a80f2d8
parent1c1db6cb564097532d0a8d49713345343c01f031
x86/microcode/AMD: Reload proper initrd start address

When we switch to virtual addresses and, especially after
reserve_initrd()->relocate_initrd() have run, we have the updated initrd
address in initrd_start. Use initrd_start then instead of the address
which has been passed to us through boot params. (That still gets used
when we're running the very early routines on the BSP).

Reported-and-tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20161220144012.lc4cwrg6dphqbyqu@pd.tnic
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/microcode/core.c