From 098dbd7ff7f3da9dda03802cdb2d8755f816eada Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 27 Dec 2020 12:47:36 +0200 Subject: [PATCH] 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.