浏览代码

x86: move early exception handlers into init.text

Currently they are in .text.head because the rest of head_64.S.
.text.head is not removed as init data, but the early exception handlers
should be because they are not needed after early boot of the BP.
So move them over.

Signed-off-by: Andi Kleen <ak@suse.de>
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Andi Kleen 17 年之前
父节点
当前提交
41bd4eac74
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/kernel/head_64.S

+ 2 - 0
arch/x86/kernel/head_64.S

@@ -267,6 +267,7 @@ ENTRY(secondary_startup_64)
 bad_address:
 bad_address:
 	jmp bad_address
 	jmp bad_address
 
 
+	.section ".init.text","ax"
 #ifdef CONFIG_EARLY_PRINTK
 #ifdef CONFIG_EARLY_PRINTK
 	.globl early_idt_handlers
 	.globl early_idt_handlers
 early_idt_handlers:
 early_idt_handlers:
@@ -321,6 +322,7 @@ early_idt_msg:
 early_idt_ripmsg:
 early_idt_ripmsg:
 	.asciz "RIP %s\n"
 	.asciz "RIP %s\n"
 #endif /* CONFIG_EARLY_PRINTK */
 #endif /* CONFIG_EARLY_PRINTK */
+	.previous
 
 
 .balign PAGE_SIZE
 .balign PAGE_SIZE