git: 3342e5967dc7 - main - i386: Fix incorrect NMI handler invocations

From: Bojan Novković <bnovkov_at_FreeBSD.org>
Date: Sun, 15 Dec 2024 17:48:37 UTC
The branch main has been updated by bnovkov:

URL: https://cgit.FreeBSD.org/src/commit/?id=3342e5967dc7193d97f99a92b81824db81efe2f1

commit 3342e5967dc7193d97f99a92b81824db81efe2f1
Author:     Bojan Novković <bnovkov@FreeBSD.org>
AuthorDate: 2024-12-15 17:44:34 +0000
Commit:     Bojan Novković <bnovkov@FreeBSD.org>
CommitDate: 2024-12-15 17:47:52 +0000

    i386: Fix incorrect NMI handler invocations
    
    Fixes:  459dc42
---
 sys/i386/i386/trap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index 9e310c049daa..a8b7df42a283 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -428,7 +428,7 @@ user_trctrap_out:
 			}
 			return;
 #else /* !POWERFAIL_NMI */
-			nmi_handle_intr(type, frame);
+			nmi_handle_intr(frame);
 			return;
 #endif /* POWERFAIL_NMI */
 
@@ -685,7 +685,7 @@ kernel_trctrap:
 			}
 			return;
 #else /* !POWERFAIL_NMI */
-			nmi_handle_intr(type, frame);
+			nmi_handle_intr(frame);
 			return;
 #endif /* POWERFAIL_NMI */
 		}