summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-10-13 12:54:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-10-13 12:54:46 +0000
commit20407c2e8748eea83bab72d483cc4b9598573e96 (patch)
tree4a01bc057d30789ba89b3c968eaaa9c14e378645 /sys/arch/m88k
parentc356485829dc6ea9a7fa11461c394073db3c29ab (diff)
It is no longer necessary to fiddle with spl in cpu_idle_{enter,leave} now
that proc_trampoline has been fixed.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/include/cpu.h4
-rw-r--r--sys/arch/m88k/m88k/process.S26
2 files changed, 4 insertions, 26 deletions
diff --git a/sys/arch/m88k/include/cpu.h b/sys/arch/m88k/include/cpu.h
index ab3342c7734..8804f92ba41 100644
--- a/sys/arch/m88k/include/cpu.h
+++ b/sys/arch/m88k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.23 2007/10/10 15:53:52 art Exp $ */
+/* $OpenBSD: cpu.h,v 1.24 2007/10/13 12:54:43 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* Copyright (c) 1992, 1993
@@ -166,7 +166,9 @@ void set_cpu_number(cpuid_t);
#define cpu_exec(p) do { /* nothing */ } while (0)
#define cpu_wait(p) do { /* nothing */ } while (0)
+#define cpu_idle_enter() do { /* nothing */ } while (0)
#define cpu_idle_cycle() do { /* nothing */ } while (0)
+#define cpu_idle_leave() do { /* nothing */ } while (0)
#if defined(MULTIPROCESSOR)
#include <sys/lock.h>
diff --git a/sys/arch/m88k/m88k/process.S b/sys/arch/m88k/m88k/process.S
index 786b40d5c38..a0d4eec97d4 100644
--- a/sys/arch/m88k/m88k/process.S
+++ b/sys/arch/m88k/m88k/process.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.S,v 1.17 2007/10/10 15:53:52 art Exp $ */
+/* $OpenBSD: process.S,v 1.18 2007/10/13 12:54:45 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* All rights reserved.
@@ -36,30 +36,6 @@
#include <machine/intr.h>
/*
- * void cpu_idle_enter()
- *
- * Enable all interrupts and lower spl. This actually enables interrupts
- * in the psr; bootstrap of secondary processors depends on this.
- */
-ENTRY(cpu_idle_enter)
- ldcr r2, PSR
- clr r2, r2, 1<PSR_INTERRUPT_DISABLE_BIT>
- stcr r2, PSR
- FLUSH_PIPELINE
-
- br.n _C_LABEL(setipl)
- or r2, r0, IPL_NONE
-
-/*
- * void cpu_idle_leave()
- *
- * Raise ipl to IPL_SCHED, but do not attempt to disable interrupts.
- */
-ENTRY(cpu_idle_leave)
- br.n _C_LABEL(setipl)
- or r2, r0, IPL_SCHED
-
-/*
* void cpu_switchto(struct proc *oldproc, struct proc *newproc)
*
* Switch context from oldproc to newproc. oldproc may be NULL if there is