Date: Sun, 1 Sep 2002 00:12:38 -0700 (PDT) From: Jonathan Mini <mini@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 16888 for review Message-ID: <200209010712.g817CcoZ021823@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16888 Change 16888 by mini@mini_stylus on 2002/09/01 00:11:59 Add cpu_set_upcall() back, which we need to initialize the pcb and initial trampoline for a kernel thread. Affected files ... .. //depot/projects/kse/sys/kern/kern_thread.c#99 edit .. //depot/projects/kse/sys/sys/proc.h#125 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_thread.c#99 (text+ko) ==== @@ -462,6 +462,7 @@ CTR3(KTR_PROC, "thread_schedule_upcall: thread %p (pid %d, %s)", td, td->td_proc->p_pid, td->td_proc->p_comm); thread_link(td2, ke->ke_ksegrp); + cpu_set_upcall(td2, td->td_pcb); /* * The user context for this thread is selected when we choose * a KSE and return to userland on it. All we need do here is ==== //depot/projects/kse/sys/sys/proc.h#125 (text+ko) ==== @@ -834,6 +834,7 @@ /* New in KSE. */ struct thread *thread_alloc(void); void thread_free(struct thread *td); +void cpu_set_upcall(struct thread *td, void *pcb); void cpu_thread_exit(struct thread *); void cpu_thread_setup(struct thread *td); void kse_reassign(struct kse *ke); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209010712.g817CcoZ021823>