summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/include/cpu.h4
-rw-r--r--sys/arch/sparc/sparc/trap.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h
index 6cab3d88eab..c866f1d4803 100644
--- a/sys/arch/sparc/include/cpu.h
+++ b/sys/arch/sparc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.27 2006/12/24 20:30:35 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.28 2007/03/15 10:22:29 art Exp $ */
/* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */
/*
@@ -141,7 +141,7 @@ extern int want_ast;
* buffer pages are invalid. On the sparc, request an ast to send us
* through trap(), marking the proc as needing a profiling tick.
*/
-#define need_proftick(p) ((p)->p_flag |= P_OWEUPC, want_ast = 1)
+#define need_proftick(p) do { want_ast = 1; } while (0)
/*
* Notify the current process (p) that it has a signal pending,
diff --git a/sys/arch/sparc/sparc/trap.c b/sys/arch/sparc/sparc/trap.c
index 7ea961d5ecb..01aa8002472 100644
--- a/sys/arch/sparc/sparc/trap.c
+++ b/sys/arch/sparc/sparc/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.50 2006/12/24 20:30:35 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.51 2007/03/15 10:22:30 art Exp $ */
/* $NetBSD: trap.c,v 1.58 1997/09/12 08:55:01 pk Exp $ */
/*
@@ -341,7 +341,6 @@ badtrap:
case T_AST:
want_ast = 0;
if (p->p_flag & P_OWEUPC) {
- p->p_flag &= ~P_OWEUPC;
ADDUPROF(p);
}
if (want_resched)