summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2003-08-14 03:56:24 +0000
committergrehan <grehan@FreeBSD.org>2003-08-14 03:56:24 +0000
commite6a3a6744e57438f2763932260c770036f4119be (patch)
tree887c4c2e54678a6aa7dbf858b636ef6f69ab1870 /sys/kern
parent52d14db571f7adb4f8901fe88346f5dea10ac336 (diff)
downloadFreeBSD-src-e6a3a6744e57438f2763932260c770036f4119be.zip
FreeBSD-src-e6a3a6744e57438f2763932260c770036f4119be.tar.gz
Update powerpc to use the (old thread,new thread) calling convention
for cpu_throw() and cpu_switch().
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_kse.c4
-rw-r--r--sys/kern/kern_synch.c6
-rw-r--r--sys/kern/kern_thr.c4
-rw-r--r--sys/kern/kern_thread.c4
4 files changed, 0 insertions, 18 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index a5a294d..2f93b1e 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -1289,11 +1289,7 @@ thread_exit(void)
}
/* XXX Shouldn't cpu_throw() here. */
mtx_assert(&sched_lock, MA_OWNED);
-#if !defined(__powerpc__)
cpu_throw(td, choosethread());
-#else
- cpu_throw();
-#endif
panic("I'm a teapot!");
/* NOTREACHED */
}
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 7525f3a..a80a712 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -459,9 +459,7 @@ mi_switch(void)
{
struct bintime new_switchtime;
struct thread *td;
-#if !defined(__powerpc__)
struct thread *newtd;
-#endif
struct proc *p;
u_int sched_nest;
@@ -517,13 +515,9 @@ mi_switch(void)
thread_switchout(td);
sched_switchout(td);
-#if !defined(__powerpc__)
newtd = choosethread();
if (td != newtd)
cpu_switch(td, newtd); /* SHAZAM!! */
-#else
- cpu_switch(); /* SHAZAM!!*/
-#endif
sched_lock.mtx_recurse = sched_nest;
sched_lock.mtx_lock = (uintptr_t)td;
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index 4cb4df4..eef25ac 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -111,11 +111,7 @@ thr_exit1(void)
sched_exit_thread(TAILQ_NEXT(td, td_kglist), td);
thread_stash(td);
-#if !defined(__powerpc__)
cpu_throw(td, choosethread());
-#else
- cpu_throw();
-#endif
}
#define RANGEOF(type, start, end) (offsetof(type, end) - offsetof(type, start))
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index a5a294d..2f93b1e 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -1289,11 +1289,7 @@ thread_exit(void)
}
/* XXX Shouldn't cpu_throw() here. */
mtx_assert(&sched_lock, MA_OWNED);
-#if !defined(__powerpc__)
cpu_throw(td, choosethread());
-#else
- cpu_throw();
-#endif
panic("I'm a teapot!");
/* NOTREACHED */
}
OpenPOWER on IntegriCloud