Fix standard kse breakge of non-x86 platforms. sigh.

Pointy hat to:	kse
This commit is contained in:
Jake Burkholder 2002-09-17 16:21:48 +00:00
parent 24280a8fbb
commit 9cf08dec12
2 changed files with 2 additions and 18 deletions

View File

@ -581,7 +581,7 @@ syscall(struct trapframe *tf)
* but for now do it every time.
*/
td->td_mailbox = (void *)fuword((caddr_t)td->td_kse->ke_mailbox
+ offsetof(struct kse_mailbox, kmbx_current_thread));
+ offsetof(struct kse_mailbox, km_curthread));
if ((td->td_mailbox == NULL) ||
(td->td_mailbox == (void *)-1)) {
td->td_mailbox = NULL; /* single thread it.. */

View File

@ -118,32 +118,16 @@ cpu_thread_setup(struct thread *td)
{
}
void
cpu_save_upcall(struct thread *td, struct kse *newkse)
{
}
void
cpu_set_upcall(struct thread *td, void *pcb)
{
}
void
cpu_set_args(struct thread *td, struct kse *ke)
cpu_set_upcall_kse(struct thread *td, struct kse *ke)
{
}
void
cpu_free_kse_mdstorage(struct kse *ke)
{
}
int
cpu_export_context(struct thread *td)
{
return (0);
}
/*
* Finish a fork operation, with process p2 nearly set up.
* Copy and update the pcb, set up the stack so that the child