Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Fix boot -c or -d by avoiding ipi handl...
details: https://anonhg.NetBSD.org/src/rev/257a94518e74
branches: trunk
changeset: 745347:257a94518e74
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 29 15:00:28 2020 +0000
description:
Fix boot -c or -d by avoiding ipi handling before the vector is initialized.
diffstat:
sys/arch/amd64/amd64/db_interface.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 87bf3e9909ac -r 257a94518e74 sys/arch/amd64/amd64/db_interface.c
--- a/sys/arch/amd64/amd64/db_interface.c Sat Feb 29 14:44:44 2020 +0000
+++ b/sys/arch/amd64/amd64/db_interface.c Sat Feb 29 15:00:28 2020 +0000
@@ -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 @@
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 */
}
Home |
Main Index |
Thread Index |
Old Index