Module Name: src
Committed By: christos
Date: Sat Feb 29 15:00:28 UTC 2020
Modified Files:
src/sys/arch/amd64/amd64: db_interface.c
Log Message:
Fix boot -c or -d by avoiding ipi handling before the vector is initialized.
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/amd64/amd64/db_interface.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/amd64/db_interface.c
diff -u src/sys/arch/amd64/amd64/db_interface.c:1.36 src/sys/arch/amd64/amd64/db_interface.c:1.37
--- src/sys/arch/amd64/amd64/db_interface.c:1.36 Thu Feb 14 02:12:40 2019
+++ src/sys/arch/amd64/amd64/db_interface.c Sat Feb 29 10:00:28 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.36 2019/02/14 07:12:40 cherry Exp $ */
+/* $NetBSD: db_interface.c,v 1.37 2020/02/29 15:00:28 christos Exp $ */
/*
* Mach Operating System
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.36 2019/02/14 07:12:40 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.37 2020/02/29 15:00:28 christos Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -150,7 +150,9 @@ db_suspend_others(void)
xen_broadcast_ipi(XEN_IPI_DDB);
#else
#if NLAPIC > 0
- x86_ipi(ddb_vec, LAPIC_DEST_ALLEXCL, LAPIC_DLMODE_FIXED);
+ if (ddb_vec != 0)
+ x86_ipi(ddb_vec, LAPIC_DEST_ALLEXCL,
+ LAPIC_DLMODE_FIXED);
#endif
#endif /* XENPV */
}