diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:06 -0500 |
commit | 076f9776f5d8d131b36955db8641aba3893c2c1b (patch) | |
tree | b85e705ecfe34400c6e1188fb470572956a232ab /arch/x86/kernel/head64.c | |
parent | 8866cd9dc9d0bbadcf361a14e0cdfecb66473087 (diff) |
x86: make early printk selectable on 64-bit as well
Enable CONFIG_EMBEDDED to select CONFIG_EARLY_PRINTK on 64-bit as well.
saves ~2K:
text data bss dec hex filename
7290283 3672091 1907848 12870222 c4624e vmlinux.before
7288373 3671795 1907848 12868016 c459b0 vmlinux.after
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/head64.c')
-rw-r--r-- | arch/x86/kernel/head64.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 85c1e6bf8022..87e031d4abf1 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c | |||
@@ -58,8 +58,13 @@ void __init x86_64_start_kernel(char * real_mode_data) | |||
58 | /* Make NULL pointers segfault */ | 58 | /* Make NULL pointers segfault */ |
59 | zap_identity_mappings(); | 59 | zap_identity_mappings(); |
60 | 60 | ||
61 | for (i = 0; i < IDT_ENTRIES; i++) | 61 | for (i = 0; i < IDT_ENTRIES; i++) { |
62 | #ifdef CONFIG_EARLY_PRINTK | ||
62 | set_intr_gate(i, &early_idt_handlers[i]); | 63 | set_intr_gate(i, &early_idt_handlers[i]); |
64 | #else | ||
65 | set_intr_gate(i, early_idt_handler); | ||
66 | #endif | ||
67 | } | ||
63 | load_idt((const struct desc_ptr *)&idt_descr); | 68 | load_idt((const struct desc_ptr *)&idt_descr); |
64 | 69 | ||
65 | early_printk("Kernel alive\n"); | 70 | early_printk("Kernel alive\n"); |