diff options
Diffstat (limited to 'arch/x86/mm/init.c')
-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 d41815265a0b..4903a03ae876 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <asm/tlb.h> | 16 | #include <asm/tlb.h> |
17 | #include <asm/proto.h> | 17 | #include <asm/proto.h> |
18 | #include <asm/dma.h> /* for MAX_DMA_PFN */ | 18 | #include <asm/dma.h> /* for MAX_DMA_PFN */ |
19 | #include <asm/microcode.h> | ||
19 | 20 | ||
20 | #include "mm_internal.h" | 21 | #include "mm_internal.h" |
21 | 22 | ||
@@ -534,6 +535,15 @@ void free_initmem(void) | |||
534 | #ifdef CONFIG_BLK_DEV_INITRD | 535 | #ifdef CONFIG_BLK_DEV_INITRD |
535 | void __init free_initrd_mem(unsigned long start, unsigned long end) | 536 | void __init free_initrd_mem(unsigned long start, unsigned long end) |
536 | { | 537 | { |
538 | #ifdef CONFIG_MICROCODE_EARLY | ||
539 | /* | ||
540 | * Remember, initrd memory may contain microcode or other useful things. | ||
541 | * Before we lose initrd mem, we need to find a place to hold them | ||
542 | * now that normal virtual memory is enabled. | ||
543 | */ | ||
544 | save_microcode_in_initrd(); | ||
545 | #endif | ||
546 | |||
537 | /* | 547 | /* |
538 | * end could be not aligned, and We can not align that, | 548 | * end could be not aligned, and We can not align that, |
539 | * decompresser could be confused by aligned initrd_end | 549 | * decompresser could be confused by aligned initrd_end |