summaryrefslogtreecommitdiff
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorPeter Dufault <dufault@FreeBSD.org>2000-03-02 16:20:07 +0000
committerPeter Dufault <dufault@FreeBSD.org>2000-03-02 16:20:07 +0000
commit383774c41767c4780eb4265f77a34190d80a2572 (patch)
tree033a04354a6638e161b42329df53353bee0a19d4 /sys/alpha/include
parent290c9a02c3e3509b704a108e0c746323d54da7f6 (diff)
Notes
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/cpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h
index b6b5b41e31a6..c9a89d4ae063 100644
--- a/sys/alpha/include/cpu.h
+++ b/sys/alpha/include/cpu.h
@@ -71,7 +71,7 @@ struct clockframe {
* Preempt the current process if in interrupt from user mode,
* or after the current trap/syscall if in system mode.
*/
-#define need_resched() { want_resched = 1; aston(); }
+#define need_resched() do { want_resched = 1; aston(); } while (0)
#define resched_wanted() want_resched
@@ -80,7 +80,8 @@ struct clockframe {
* buffer pages are invalid. On the hp300, 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; aston(); }
+#define need_proftick(p) \
+ do { (p)->p_flag |= P_OWEUPC; aston(); } while (0)
/*
* Notify the current process (p) that it has a signal pending,