summaryrefslogtreecommitdiff
path: root/sys/arch/vax/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/vax/include')
-rw-r--r--sys/arch/vax/include/cpu.h6
-rw-r--r--sys/arch/vax/include/macros.h15
2 files changed, 10 insertions, 11 deletions
diff --git a/sys/arch/vax/include/cpu.h b/sys/arch/vax/include/cpu.h
index 80b05d5d185..dc6ec203a16 100644
--- a/sys/arch/vax/include/cpu.h
+++ b/sys/arch/vax/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.25 2007/05/16 05:19:13 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.26 2007/10/10 15:53:53 art Exp $ */
/* $NetBSD: cpu.h,v 1.41 1999/10/21 20:01:36 ragge Exp $ */
/*
@@ -129,6 +129,10 @@ extern int want_resched; /* resched() was called */
*/
#define need_proftick(p) mtpr(AST_OK,PR_ASTLVL)
+#define cpu_idle_enter() do { /* nothing */ } while (0)
+#define cpu_idle_cycle() do { /* nothing */ } while (0)
+#define cpu_idle_leave() do { /* nothing */ } while (0)
+
/*
* This defines the I/O device register space size in pages.
*/
diff --git a/sys/arch/vax/include/macros.h b/sys/arch/vax/include/macros.h
index 0c514ff5aa7..87bd942c43a 100644
--- a/sys/arch/vax/include/macros.h
+++ b/sys/arch/vax/include/macros.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: macros.h,v 1.14 2006/11/06 21:31:36 miod Exp $ */
+/* $OpenBSD: macros.h,v 1.15 2007/10/10 15:53:53 art Exp $ */
/* $NetBSD: macros.h,v 1.20 2000/07/19 01:02:52 matt Exp $ */
/*
@@ -232,15 +232,10 @@ skpc(int mask, size_t size, u_char *cp)
return ret;
}
-#define setrunqueue(p) \
- __asm__ __volatile("movl %0,r0;jsb Setrq":: "g"(p):"r0","r1","r2");
-
-#define remrunqueue(p) \
- __asm__ __volatile("movl %0,r0;jsb Remrq":: "g"(p):"r0","r1","r2");
-
-#define cpu_switch(p) \
- __asm__ __volatile("movl %0,r0;movpsl -(sp);jsb Swtch" \
- ::"g"(p):"r0","r1","r2","r3");
+#define cpu_switchto(o, n) \
+ __asm__ __volatile__( \
+ "movl %0,r0; movl %1, r1; movpsl -(sp); jsb __cpu_switchto" \
+ :: "g"(o), "g"(n) : "r0", "r1");
/*
* Interlock instructions. Used both in multiprocessor environments to