diff options
Diffstat (limited to 'arch/x86/mm')
| -rw-r--r-- | arch/x86/mm/init.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index d41815265a0..4903a03ae87 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -16,6 +16,7 @@  #include <asm/tlb.h>  #include <asm/proto.h>  #include <asm/dma.h>		/* for MAX_DMA_PFN */ +#include <asm/microcode.h>  #include "mm_internal.h" @@ -534,6 +535,15 @@ void free_initmem(void)  #ifdef CONFIG_BLK_DEV_INITRD  void __init free_initrd_mem(unsigned long start, unsigned long end)  { +#ifdef CONFIG_MICROCODE_EARLY +	/* +	 * Remember, initrd memory may contain microcode or other useful things. +	 * Before we lose initrd mem, we need to find a place to hold them +	 * now that normal virtual memory is enabled. +	 */ +	save_microcode_in_initrd(); +#endif +  	/*  	 * end could be not aligned, and We can not align that,  	 * decompresser could be confused by aligned initrd_end  |