diff options
-rw-r--r-- | arch/mips/kernel/setup.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 3378fdaf4dd3..9b20a0f89812 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -477,9 +477,18 @@ static void __init bootmem_init(void) | |||
477 | */ | 477 | */ |
478 | if (__pa_symbol(_text) > __pa_symbol(VMLINUX_LOAD_ADDRESS)) { | 478 | if (__pa_symbol(_text) > __pa_symbol(VMLINUX_LOAD_ADDRESS)) { |
479 | unsigned long offset; | 479 | unsigned long offset; |
480 | extern void show_kernel_relocation(const char *level); | ||
480 | 481 | ||
481 | offset = __pa_symbol(_text) - __pa_symbol(VMLINUX_LOAD_ADDRESS); | 482 | offset = __pa_symbol(_text) - __pa_symbol(VMLINUX_LOAD_ADDRESS); |
482 | free_bootmem(__pa_symbol(VMLINUX_LOAD_ADDRESS), offset); | 483 | free_bootmem(__pa_symbol(VMLINUX_LOAD_ADDRESS), offset); |
484 | |||
485 | #if defined(CONFIG_DEBUG_KERNEL) && defined(CONFIG_DEBUG_INFO) | ||
486 | /* | ||
487 | * This information is necessary when debugging the kernel | ||
488 | * But is a security vulnerability otherwise! | ||
489 | */ | ||
490 | show_kernel_relocation(KERN_INFO); | ||
491 | #endif | ||
483 | } | 492 | } |
484 | #endif | 493 | #endif |
485 | 494 | ||