diff options
author | 2007-04-05 17:32:37 +0000 | |
---|---|---|
committer | 2007-04-05 17:32:37 +0000 | |
commit | 3eef6544226bb4586ad3123b02b97fb42fe84cc2 (patch) | |
tree | d0f79b0dedda26cc0640014cfac7be08ae624d0e | |
parent | splx() does not need to return a value. (diff) | |
download | wireguard-openbsd-3eef6544226bb4586ad3123b02b97fb42fe84cc2.tar.xz wireguard-openbsd-3eef6544226bb4586ad3123b02b97fb42fe84cc2.zip |
Reuse symbolic values for splsoftXXX() inlines, instead of hardcoding them.
No functional change.
-rw-r--r-- | sys/arch/vax/include/cpu.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/vax/include/cpu.h b/sys/arch/vax/include/cpu.h index bc291df29e6..7227bf9c5e6 100644 --- a/sys/arch/vax/include/cpu.h +++ b/sys/arch/vax/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.23 2007/03/15 10:22:30 art Exp $ */ +/* $OpenBSD: cpu.h,v 1.24 2007/04/05 17:32:37 miod Exp $ */ /* $NetBSD: cpu.h,v 1.41 1999/10/21 20:01:36 ragge Exp $ */ /* @@ -45,6 +45,7 @@ #include <machine/uvax.h> #include <machine/psl.h> #include <machine/trap.h> +#include <machine/intr.h> #define cpu_wait(p) #define cpu_number() 0 @@ -80,8 +81,8 @@ extern struct device *booted_from; extern int mastercpu; extern int bootdev; -#define setsoftnet() mtpr(12,PR_SIRR) -#define setsoftclock() mtpr(8,PR_SIRR) +#define setsoftnet() mtpr(IPL_SOFTNET,PR_SIRR) +#define setsoftclock() mtpr(IPL_SOFTCLOCK,PR_SIRR) #define todr() mfpr(PR_TODR) /* * Preempt the current process if in interrupt from user mode, |