Skip to contentSkip to conversation

Permit x86_64 trap handlers to return

PATCH New Samuel Thibault 1 participant 1 message Nov 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Permit x86_64 trap handlers to return

Trap handlers sometimes fix the problem, so they need to be able to return.

extras/mini-os/arch/x86/x86_64.S +1 -0
diff -r dc9246357cdb extras/mini-os/arch/x86/x86_64.S
@@ -193,6 +193,7 @@ error_call_handler:
 	movq ORIG_RAX(%rsp),%rsi	# get error code 
 	movq $-1,ORIG_RAX(%rsp)
 	call *%rax
+	jmp error_exit
 
 .macro zeroentry sym
 #	INTR_FRAME