Add tunables that mirror the functionality of sysctls machdep.panic_on_nmi
and machdep.kdb_on_nmi. Approved by: emaste (mentor) MFC after: 1 week
This commit is contained in:
parent
13fb631aff
commit
7d6a0bf373
@ -164,10 +164,12 @@ static char *trap_msg[] = {
|
||||
static int kdb_on_nmi = 1;
|
||||
SYSCTL_INT(_machdep, OID_AUTO, kdb_on_nmi, CTLFLAG_RW,
|
||||
&kdb_on_nmi, 0, "Go to KDB on NMI");
|
||||
TUNABLE_INT("machdep.kdb_on_nmi", &kdb_on_nmi);
|
||||
#endif
|
||||
static int panic_on_nmi = 1;
|
||||
SYSCTL_INT(_machdep, OID_AUTO, panic_on_nmi, CTLFLAG_RW,
|
||||
&panic_on_nmi, 0, "Panic on NMI");
|
||||
TUNABLE_INT("machdep.panic_on_nmi", &panic_on_nmi);
|
||||
static int prot_fault_translation = 0;
|
||||
SYSCTL_INT(_machdep, OID_AUTO, prot_fault_translation, CTLFLAG_RW,
|
||||
&prot_fault_translation, 0, "Select signal to deliver on protection fault");
|
||||
|
@ -179,10 +179,12 @@ extern int has_f00f_bug;
|
||||
static int kdb_on_nmi = 1;
|
||||
SYSCTL_INT(_machdep, OID_AUTO, kdb_on_nmi, CTLFLAG_RW,
|
||||
&kdb_on_nmi, 0, "Go to KDB on NMI");
|
||||
TUNABLE_INT("machdep.kdb_on_nmi", &kdb_on_nmi);
|
||||
#endif
|
||||
static int panic_on_nmi = 1;
|
||||
SYSCTL_INT(_machdep, OID_AUTO, panic_on_nmi, CTLFLAG_RW,
|
||||
&panic_on_nmi, 0, "Panic on NMI");
|
||||
TUNABLE_INT("machdep.panic_on_nmi", &panic_on_nmi);
|
||||
static int prot_fault_translation = 0;
|
||||
SYSCTL_INT(_machdep, OID_AUTO, prot_fault_translation, CTLFLAG_RW,
|
||||
&prot_fault_translation, 0, "Select signal to deliver on protection fault");
|
||||
|
Loading…
Reference in New Issue
Block a user