浏览代码

traps: x86_64: add TRACE_IRQS_OFF in error_entry

Add TRACE_IRQS_OFF just before entering the C code.

All exceptions are taken via interrupt gates. If irq tracing is
enabled, it should be notified as soon as possible. Interrupts
are only (conditionally) re-enabled in C code.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Alexander van Heukelum 16 年之前
父节点
当前提交
6b11d4ef3e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/x86/kernel/entry_64.S

+ 2 - 1
arch/x86/kernel/entry_64.S

@@ -1065,7 +1065,8 @@ KPROBE_ENTRY(error_entry)
 	je  error_kernelspace
 	je  error_kernelspace
 error_swapgs:	
 error_swapgs:	
 	SWAPGS
 	SWAPGS
-error_sti:	
+error_sti:
+	TRACE_IRQS_OFF
 	movq %rdi,RDI(%rsp) 	
 	movq %rdi,RDI(%rsp) 	
 	CFI_REL_OFFSET	rdi,RDI
 	CFI_REL_OFFSET	rdi,RDI
 	movq %rsp,%rdi
 	movq %rsp,%rdi