Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/dtrace/i386 Fix DIAGNOSTIC build; re...
details: https://anonhg.NetBSD.org/src/rev/77fe0fd3a2f7
branches: trunk
changeset: 448908:77fe0fd3a2f7
user: rin <rin%NetBSD.org@localhost>
date: Wed Feb 13 08:46:40 2019 +0000
description:
Fix DIAGNOSTIC build; replace FreeBSD-specific function with ours.
diffstat:
external/cddl/osnet/dev/dtrace/i386/dtrace_subr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 5f62ff3ce891 -r 77fe0fd3a2f7 external/cddl/osnet/dev/dtrace/i386/dtrace_subr.c
--- a/external/cddl/osnet/dev/dtrace/i386/dtrace_subr.c Wed Feb 13 08:42:26 2019 +0000
+++ b/external/cddl/osnet/dev/dtrace/i386/dtrace_subr.c Wed Feb 13 08:46:40 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dtrace_subr.c,v 1.11 2018/06/04 21:35:29 christos Exp $ */
+/* $NetBSD: dtrace_subr.c,v 1.12 2019/02/13 08:46:40 rin Exp $ */
/*
* CDDL HEADER START
@@ -424,7 +424,8 @@
*/
nofault = (cpu_core[cpuid].cpuc_dtrace_flags & CPU_DTRACE_NOFAULT) != 0;
if (nofault) {
- KASSERTMSG((read_eflags() & PSL_I) == 0, "interrupts enabled");
+ KASSERTMSG((x86_read_flags() & PSL_I) == 0,
+ "interrupts enabled");
/*
* There are only a couple of trap types that are expected.
Home |
Main Index |
Thread Index |
Old Index