git: 098dbd7ff7f3 - main - amd64 nmi handler: fix comment about %ebx

Konstantin Belousov kib at FreeBSD.org
Sun Dec 27 11:14:58 UTC 2020


The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=098dbd7ff7f3da9dda03802cdb2d8755f816eada

commit 098dbd7ff7f3da9dda03802cdb2d8755f816eada
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2020-12-27 10:47:36 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2020-12-27 10:59:33 +0000

    amd64 nmi handler: fix comment about %ebx
    
    Reported by:    markj
    MFC after:      3 days
---
 sys/amd64/amd64/exception.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
index 6b56a2c8a50e..3fb518179406 100644
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -940,7 +940,7 @@ outofnmi:
 	cli
 nocallchain:
 #endif
-	testl	%ebx,%ebx	/* %ebx == 0 => return to userland */
+	testl	%ebx,%ebx	/* %ebx != 0 => return to userland */
 	jnz	doreti_exit
 	/*
 	 * Restore speculation control MSR, if preserved.
@@ -1059,7 +1059,7 @@ mchk_calltrap:
 	movq	%rsp,%rdi
 	call	mca_intr
 	MEXITCOUNT
-	testl	%ebx,%ebx	/* %ebx == 0 => return to userland */
+	testl	%ebx,%ebx	/* %ebx != 0 => return to userland */
 	jnz	doreti_exit
 	/*
 	 * Restore speculation control MSR, if preserved.


More information about the dev-commits-src-all mailing list