I believe cpu_setfunc() should be similar (~= identical) to the 2nd half of cpu_lwp_fork(). Can we make them symmetry each other, or even merge them for simplicity?
I made my own code to have cpu_lwp_func() to call cpu_setfunc(). ftp.netbsd.org:/pub/NetBSD/misc/nisimura/powerpc.sa.diff2 Toru Nishimura / ALKYL Technology