diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-05 17:32:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-04-05 17:32:38 +0000 |
commit | 6b436b5210f9b5c74ca41d79a068f2e6e0345e44 (patch) | |
tree | d0bd9ccab19374905259fbdc070d2c453014755e /sys/arch/vax/include | |
parent | a2d42fbc3f1466444ef3d0e68f4d166373f0616a (diff) |
Reuse symbolic values for splsoftXXX() inlines, instead of hardcoding them.
No functional change.
Diffstat (limited to 'sys/arch/vax/include')
-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, |