Module Name: src Committed By: rin Date: Mon Jun 22 05:34:57 UTC 2020
Modified Files: src/sys/arch/powerpc/include: mcontext.h types.h src/sys/arch/powerpc/powerpc: sig_machdep.c Log Message: Fix previous; hide userland ABI details for kernel as suggested by joerg: http://mail-index.netbsd.org/source-changes-d/2020/06/21/msg012745.html - Revive __lwp_settcb(), and call _lwp_setprivate(2) from it. - Keep l_private opaque pointer for kernel; store raw value of %r2 in it. In the previous commit message, I wrote, http://mail-index.netbsd.org/source-changes/2020/06/21/msg118524.html > - Make sure that, like other ports, l_private represents address of tcb, > not biased one as in %r2. but, it turned out to be wrong. mips stores a biased address, at least. It is userland responsibility to interpret returned values from lwp_getprivate(2). To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/powerpc/include/mcontext.h cvs rdiff -u -r1.63 -r1.64 src/sys/arch/powerpc/include/types.h cvs rdiff -u -r1.50 -r1.51 src/sys/arch/powerpc/powerpc/sig_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.