commit 6198c3a7dba457ad8e3cae56254c482e81594b6c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Nov 27 22:48:16 2022 +0100

    x86_64: fix build

diff --git a/x86_64/locore.S b/x86_64/locore.S
index 0833da06..f81886da 100644
--- a/x86_64/locore.S
+++ b/x86_64/locore.S
@@ -894,7 +894,7 @@ ENTRY(kdb_kintr)
 	cmpq	RET_OFFSET(%rax),%rdx	/* interrupt handler (2)? */
 	je	2f			/* if not: */
 	movq	(%rax),%rax		/* try next frame */
-	testl	%rax,%rax
+	testq	%rax,%rax
 	jnz	0b
 	ud2				/* oops, didn't find frame, fix me :/ */
 
