mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
AMD64 uses the new-style cpu_switch()/cpu_throw() calling conventions.
This commit is contained in:
parent
0eb8d2e84a
commit
cb1f265c60
5 changed files with 6 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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!! */
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue