AMD64 uses the new-style cpu_switch()/cpu_throw() calling conventions.

This commit is contained in:
Peter Wemm 2003-04-30 21:45:03 +00:00
parent 0eb8d2e84a
commit cb1f265c60
5 changed files with 6 additions and 6 deletions

View file

@ -1221,7 +1221,7 @@ thread_exit(void)
}
/* XXX Shouldn't cpu_throw() here. */
mtx_assert(&sched_lock, MA_OWNED);
#if defined(__i386__) || defined(__sparc64__)
#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__)
cpu_throw(td, choosethread());
#else
cpu_throw();

View file

@ -457,7 +457,7 @@ mi_switch(void)
{
struct bintime new_switchtime;
struct thread *td;
#if defined(__i386__) || defined(__sparc64__)
#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__)
struct thread *newtd;
#endif
struct proc *p;
@ -517,7 +517,7 @@ mi_switch(void)
thread_switchout(td);
sched_switchout(td);
#if defined(__i386__) || defined(__sparc64__)
#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__)
newtd = choosethread();
if (td != newtd)
cpu_switch(td, newtd); /* SHAZAM!! */

View file

@ -111,7 +111,7 @@ thr_exit1(void)
sched_exit_thread(TAILQ_NEXT(td, td_kglist), td);
thread_stash(td);
#if defined(__i386__) || defined(__sparc64__)
#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__)
cpu_throw(td, choosethread());
#else
cpu_throw();

View file

@ -1221,7 +1221,7 @@ thread_exit(void)
}
/* XXX Shouldn't cpu_throw() here. */
mtx_assert(&sched_lock, MA_OWNED);
#if defined(__i386__) || defined(__sparc64__)
#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__)
cpu_throw(td, choosethread());
#else
cpu_throw();

View file

@ -875,7 +875,7 @@ int sigonstack(size_t sp);
void sleepinit(void);
void stopevent(struct proc *, u_int, u_int);
void cpu_idle(void);
#if defined(__i386__) || defined(__sparc64__)
#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__)
void cpu_switch(struct thread *old, struct thread *new);
void cpu_throw(struct thread *old, struct thread *new) __dead2;
#else