Index: distrib/sets/lists/comp/ad.aarch64 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.aarch64,v retrieving revision 1.55 diff -u -u -r1.55 ad.aarch64 --- distrib/sets/lists/comp/ad.aarch64 11 Jul 2024 20:41:06 -0000 1.55 +++ distrib/sets/lists/comp/ad.aarch64 27 Nov 2024 17:48:07 -0000 @@ -27,6 +27,7 @@ ./usr/include/aarch64/kcore.h comp-c-include ./usr/include/aarch64/limits.h comp-c-include ./usr/include/aarch64/lock.h comp-c-include +./usr/include/aarch64/lwp_private.h comp-c-include ./usr/include/aarch64/math.h comp-c-include ./usr/include/aarch64/mcontext.h comp-c-include ./usr/include/aarch64/mutex.h comp-c-include Index: distrib/sets/lists/comp/ad.arm =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.arm,v retrieving revision 1.113 diff -u -u -r1.113 ad.arm --- distrib/sets/lists/comp/ad.arm 4 Nov 2024 15:45:22 -0000 1.113 +++ distrib/sets/lists/comp/ad.arm 27 Nov 2024 17:48:07 -0000 @@ -162,6 +162,7 @@ ./usr/include/arm/kcore.h comp-c-include ./usr/include/arm/limits.h comp-c-include ./usr/include/arm/lock.h comp-c-include +./usr/include/arm/lwp_private.h comp-c-include ./usr/include/arm/math.h comp-c-include ./usr/include/arm/mcontext.h comp-c-include ./usr/include/arm/mutex.h comp-c-include Index: distrib/sets/lists/comp/ad.hppa =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.hppa,v retrieving revision 1.21 diff -u -u -r1.21 ad.hppa --- distrib/sets/lists/comp/ad.hppa 11 Jul 2024 20:41:06 -0000 1.21 +++ distrib/sets/lists/comp/ad.hppa 27 Nov 2024 17:48:07 -0000 @@ -32,6 +32,7 @@ ./usr/include/hppa/kcore.h comp-c-include ./usr/include/hppa/limits.h comp-c-include ./usr/include/hppa/lock.h comp-c-include +./usr/include/hppa/lwp_private.h comp-c-include ./usr/include/hppa/math.h comp-c-include ./usr/include/hppa/mcontext.h comp-c-include ./usr/include/hppa/mutex.h comp-c-include Index: distrib/sets/lists/comp/ad.m68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.m68k,v retrieving revision 1.75 diff -u -u -r1.75 ad.m68k --- distrib/sets/lists/comp/ad.m68k 4 Nov 2024 15:45:22 -0000 1.75 +++ distrib/sets/lists/comp/ad.m68k 27 Nov 2024 17:48:07 -0000 @@ -55,6 +55,7 @@ ./usr/include/m68k/kcore.h comp-c-include ./usr/include/m68k/limits.h comp-c-include ./usr/include/m68k/lock.h comp-c-include +./usr/include/m68k/lwp_private.h comp-c-include ./usr/include/m68k/m68k.h comp-c-include ./usr/include/m68k/math.h comp-c-include ./usr/include/m68k/mcontext.h comp-c-include Index: distrib/sets/lists/comp/ad.mips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.mips,v retrieving revision 1.96 diff -u -u -r1.96 ad.mips --- distrib/sets/lists/comp/ad.mips 4 Nov 2024 15:45:22 -0000 1.96 +++ distrib/sets/lists/comp/ad.mips 27 Nov 2024 17:48:07 -0000 @@ -82,6 +82,7 @@ ./usr/include/mips/kdbparam.h comp-c-include ./usr/include/mips/limits.h comp-c-include ./usr/include/mips/lock.h comp-c-include +./usr/include/mips/lwp_private.h comp-c-include ./usr/include/mips/locore.h comp-c-include ./usr/include/mips/math.h comp-c-include ./usr/include/mips/mcontext.h comp-c-include Index: distrib/sets/lists/comp/ad.powerpc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.powerpc,v retrieving revision 1.110 diff -u -u -r1.110 ad.powerpc --- distrib/sets/lists/comp/ad.powerpc 4 Nov 2024 15:45:22 -0000 1.110 +++ distrib/sets/lists/comp/ad.powerpc 27 Nov 2024 17:48:07 -0000 @@ -218,6 +218,7 @@ ./usr/include/powerpc/kcore.h comp-c-include ./usr/include/powerpc/limits.h comp-c-include ./usr/include/powerpc/lock.h comp-c-include +./usr/include/powerpc/lwp_private.h comp-c-include ./usr/include/powerpc/machine_type.h comp-obsolete obsolete ./usr/include/powerpc/math.h comp-c-include ./usr/include/powerpc/mcontext.h comp-c-include Index: distrib/sets/lists/comp/ad.riscv =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.riscv,v retrieving revision 1.25 diff -u -u -r1.25 ad.riscv --- distrib/sets/lists/comp/ad.riscv 4 Nov 2024 15:45:22 -0000 1.25 +++ distrib/sets/lists/comp/ad.riscv 27 Nov 2024 17:48:07 -0000 @@ -37,6 +37,7 @@ ./usr/include/riscv/kcore.h comp-c-include ./usr/include/riscv/limits.h comp-c-include ./usr/include/riscv/lock.h comp-c-include +./usr/include/riscv/lwp_private.h comp-c-include ./usr/include/riscv/math.h comp-c-include ./usr/include/riscv/mcontext.h comp-c-include ./usr/include/riscv/mutex.h comp-c-include Index: distrib/sets/lists/comp/ad.sh3 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/ad.sh3,v retrieving revision 1.51 diff -u -u -r1.51 ad.sh3 --- distrib/sets/lists/comp/ad.sh3 4 Nov 2024 15:45:22 -0000 1.51 +++ distrib/sets/lists/comp/ad.sh3 27 Nov 2024 17:48:07 -0000 @@ -40,6 +40,7 @@ ./usr/include/sh3/intr.h comp-c-include ./usr/include/sh3/limits.h comp-c-include ./usr/include/sh3/lock.h comp-c-include +./usr/include/sh3/lwp_private.h comp-c-include ./usr/include/sh3/math.h comp-c-include ./usr/include/sh3/mcontext.h comp-c-include ./usr/include/sh3/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.algor =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.algor,v retrieving revision 1.19 diff -u -u -r1.19 md.algor --- distrib/sets/lists/comp/md.algor 11 Jul 2024 20:41:07 -0000 1.19 +++ distrib/sets/lists/comp/md.algor 27 Nov 2024 17:48:07 -0000 @@ -33,6 +33,7 @@ ./usr/include/algor/limits.h comp-c-include ./usr/include/algor/lock.h comp-c-include ./usr/include/algor/locore.h comp-c-include +./usr/include/algor/lwp_private.h comp-c-include ./usr/include/algor/math.h comp-c-include ./usr/include/algor/mcontext.h comp-c-include ./usr/include/algor/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.alpha =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.alpha,v retrieving revision 1.84 diff -u -u -r1.84 md.alpha --- distrib/sets/lists/comp/md.alpha 4 Nov 2024 15:45:22 -0000 1.84 +++ distrib/sets/lists/comp/md.alpha 27 Nov 2024 17:48:07 -0000 @@ -42,6 +42,7 @@ ./usr/include/alpha/kcore.h comp-c-include ./usr/include/alpha/limits.h comp-c-include ./usr/include/alpha/lock.h comp-c-include +./usr/include/alpha/lwp_private.h comp-c-include ./usr/include/alpha/math.h comp-c-include ./usr/include/alpha/mcontext.h comp-c-include ./usr/include/alpha/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.amd64 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.amd64,v retrieving revision 1.306 diff -u -u -r1.306 md.amd64 --- distrib/sets/lists/comp/md.amd64 27 Nov 2024 17:08:40 -0000 1.306 +++ distrib/sets/lists/comp/md.amd64 27 Nov 2024 17:48:07 -0000 @@ -38,6 +38,7 @@ ./usr/include/amd64/limits.h comp-c-include ./usr/include/amd64/linux32_machdep.h comp-c-include ./usr/include/amd64/lock.h comp-c-include +./usr/include/amd64/lwp_private.h comp-c-include ./usr/include/amd64/math.h comp-c-include ./usr/include/amd64/mcontext.h comp-c-include ./usr/include/amd64/mtrr.h comp-c-include @@ -1303,6 +1304,7 @@ ./usr/include/i386/kcore.h comp-c-include ./usr/include/i386/limits.h comp-c-include ./usr/include/i386/lock.h comp-c-include +./usr/include/i386/lwp_private.h comp-c-include ./usr/include/i386/math.h comp-c-include ./usr/include/i386/mcontext.h comp-c-include ./usr/include/i386/mtrr.h comp-c-include @@ -1423,6 +1425,7 @@ ./usr/include/x86/intr.h comp-c-include ./usr/include/x86/intrdefs.h comp-c-include ./usr/include/x86/lock.h comp-c-include +./usr/include/x86/lwp_private.h comp-c-include ./usr/include/x86/math.h comp-c-include ./usr/include/x86/mtrr.h comp-c-include ./usr/include/x86/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.amiga =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.amiga,v retrieving revision 1.62 diff -u -u -r1.62 md.amiga --- distrib/sets/lists/comp/md.amiga 11 Jul 2024 20:41:07 -0000 1.62 +++ distrib/sets/lists/comp/md.amiga 27 Nov 2024 17:48:07 -0000 @@ -31,6 +31,7 @@ ./usr/include/amiga/kcore.h comp-c-include ./usr/include/amiga/limits.h comp-c-include ./usr/include/amiga/lock.h comp-c-include +./usr/include/amiga/lwp_private.h comp-c-include ./usr/include/amiga/math.h comp-c-include ./usr/include/amiga/mcontext.h comp-c-include ./usr/include/amiga/mtpr.h comp-obsolete obsolete Index: distrib/sets/lists/comp/md.amigappc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.amigappc,v retrieving revision 1.16 diff -u -u -r1.16 md.amigappc --- distrib/sets/lists/comp/md.amigappc 11 Jul 2024 20:41:07 -0000 1.16 +++ distrib/sets/lists/comp/md.amigappc 27 Nov 2024 17:48:07 -0000 @@ -32,6 +32,7 @@ ./usr/include/amigappc/kcore.h comp-c-include ./usr/include/amigappc/limits.h comp-c-include ./usr/include/amigappc/lock.h comp-c-include +./usr/include/amigappc/lwp_private.h comp-c-include ./usr/include/amigappc/machine_type.h comp-obsolete obsolete ./usr/include/amigappc/math.h comp-c-include ./usr/include/amigappc/mcontext.h comp-c-include Index: distrib/sets/lists/comp/md.arc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.arc,v retrieving revision 1.27 diff -u -u -r1.27 md.arc --- distrib/sets/lists/comp/md.arc 11 Jul 2024 20:41:07 -0000 1.27 +++ distrib/sets/lists/comp/md.arc 27 Nov 2024 17:48:07 -0000 @@ -29,6 +29,7 @@ ./usr/include/arc/kdbparam.h comp-c-include ./usr/include/arc/limits.h comp-c-include ./usr/include/arc/lock.h comp-c-include +./usr/include/arc/lwp_private.h comp-c-include ./usr/include/arc/math.h comp-c-include ./usr/include/arc/mcontext.h comp-c-include ./usr/include/arc/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.atari =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.atari,v retrieving revision 1.62 diff -u -u -r1.62 md.atari --- distrib/sets/lists/comp/md.atari 11 Jul 2024 20:41:07 -0000 1.62 +++ distrib/sets/lists/comp/md.atari 27 Nov 2024 17:48:07 -0000 @@ -33,6 +33,7 @@ ./usr/include/atari/kcore.h comp-c-include ./usr/include/atari/limits.h comp-c-include ./usr/include/atari/lock.h comp-c-include +./usr/include/atari/lwp_private.h comp-c-include ./usr/include/atari/math.h comp-c-include ./usr/include/atari/mcontext.h comp-c-include ./usr/include/atari/msioctl.h comp-c-include Index: distrib/sets/lists/comp/md.bebox =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.bebox,v retrieving revision 1.42 diff -u -u -r1.42 md.bebox --- distrib/sets/lists/comp/md.bebox 11 Jul 2024 20:41:07 -0000 1.42 +++ distrib/sets/lists/comp/md.bebox 27 Nov 2024 17:48:07 -0000 @@ -37,6 +37,7 @@ ./usr/include/bebox/kgdb.h comp-obsolete obsolete ./usr/include/bebox/limits.h comp-c-include ./usr/include/bebox/lock.h comp-c-include +./usr/include/bebox/lwp_private.h comp-c-include ./usr/include/bebox/math.h comp-c-include ./usr/include/bebox/mcontext.h comp-c-include ./usr/include/bebox/mouse.h comp-obsolete obsolete Index: distrib/sets/lists/comp/md.cesfic =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.cesfic,v retrieving revision 1.10 diff -u -u -r1.10 md.cesfic --- distrib/sets/lists/comp/md.cesfic 11 Jul 2024 20:41:07 -0000 1.10 +++ distrib/sets/lists/comp/md.cesfic 27 Nov 2024 17:48:07 -0000 @@ -25,6 +25,7 @@ ./usr/include/cesfic/intr.h comp-c-include ./usr/include/cesfic/limits.h comp-c-include ./usr/include/cesfic/lock.h comp-c-include +./usr/include/cesfic/lwp_private.h comp-c-include ./usr/include/cesfic/math.h comp-c-include ./usr/include/cesfic/mcontext.h comp-c-include ./usr/include/cesfic/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.cobalt =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.cobalt,v retrieving revision 1.30 diff -u -u -r1.30 md.cobalt --- distrib/sets/lists/comp/md.cobalt 11 Jul 2024 20:41:07 -0000 1.30 +++ distrib/sets/lists/comp/md.cobalt 27 Nov 2024 17:48:07 -0000 @@ -33,6 +33,7 @@ ./usr/include/cobalt/limits.h comp-c-include ./usr/include/cobalt/lock.h comp-c-include ./usr/include/cobalt/locore.h comp-c-include +./usr/include/cobalt/lwp_private.h comp-c-include ./usr/include/cobalt/math.h comp-c-include ./usr/include/cobalt/mcontext.h comp-c-include ./usr/include/cobalt/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.dreamcast =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.dreamcast,v retrieving revision 1.20 diff -u -u -r1.20 md.dreamcast --- distrib/sets/lists/comp/md.dreamcast 11 Jul 2024 20:41:07 -0000 1.20 +++ distrib/sets/lists/comp/md.dreamcast 27 Nov 2024 17:48:07 -0000 @@ -30,6 +30,7 @@ ./usr/include/dreamcast/intr.h comp-c-include ./usr/include/dreamcast/limits.h comp-c-include ./usr/include/dreamcast/lock.h comp-c-include +./usr/include/dreamcast/lwp_private.h comp-c-include ./usr/include/dreamcast/math.h comp-c-include ./usr/include/dreamcast/mcontext.h comp-c-include ./usr/include/dreamcast/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.emips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.emips,v retrieving revision 1.10 diff -u -u -r1.10 md.emips --- distrib/sets/lists/comp/md.emips 11 Jul 2024 20:41:07 -0000 1.10 +++ distrib/sets/lists/comp/md.emips 27 Nov 2024 17:48:07 -0000 @@ -29,6 +29,7 @@ ./usr/include/emips/limits.h comp-c-include ./usr/include/emips/lock.h comp-c-include ./usr/include/emips/locore.h comp-c-include +./usr/include/emips/lwp_private.h comp-c-include ./usr/include/emips/math.h comp-c-include ./usr/include/emips/mcontext.h comp-c-include ./usr/include/emips/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.evbcf =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.evbcf,v retrieving revision 1.5 diff -u -u -r1.5 md.evbcf --- distrib/sets/lists/comp/md.evbcf 11 Jul 2024 20:41:07 -0000 1.5 +++ distrib/sets/lists/comp/md.evbcf 27 Nov 2024 17:48:07 -0000 @@ -26,6 +26,7 @@ ./usr/include/evbcf/kcore.h comp-c-include ./usr/include/evbcf/limits.h comp-c-include ./usr/include/evbcf/lock.h comp-c-include +./usr/include/evbcf/lwp_private.h comp-c-include ./usr/include/evbcf/math.h comp-c-include ./usr/include/evbcf/mcontext.h comp-c-include ./usr/include/evbcf/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.evbmips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.evbmips,v retrieving revision 1.25 diff -u -u -r1.25 md.evbmips --- distrib/sets/lists/comp/md.evbmips 11 Jul 2024 20:41:07 -0000 1.25 +++ distrib/sets/lists/comp/md.evbmips 27 Nov 2024 17:48:07 -0000 @@ -32,6 +32,7 @@ ./usr/include/evbmips/limits.h comp-c-include ./usr/include/evbmips/lock.h comp-c-include ./usr/include/evbmips/locore.h comp-c-include +./usr/include/evbmips/lwp_private.h comp-c-include ./usr/include/evbmips/math.h comp-c-include ./usr/include/evbmips/mcontext.h comp-c-include ./usr/include/evbmips/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.evbppc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.evbppc,v retrieving revision 1.19 diff -u -u -r1.19 md.evbppc --- distrib/sets/lists/comp/md.evbppc 11 Jul 2024 20:41:07 -0000 1.19 +++ distrib/sets/lists/comp/md.evbppc 27 Nov 2024 17:48:07 -0000 @@ -31,6 +31,7 @@ ./usr/include/evbppc/kcore.h comp-c-include ./usr/include/evbppc/limits.h comp-c-include ./usr/include/evbppc/lock.h comp-c-include +./usr/include/evbppc/lwp_private.h comp-c-include ./usr/include/evbppc/math.h comp-c-include ./usr/include/evbppc/mcontext.h comp-c-include ./usr/include/evbppc/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.evbsh3 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.evbsh3,v retrieving revision 1.31 diff -u -u -r1.31 md.evbsh3 --- distrib/sets/lists/comp/md.evbsh3 11 Jul 2024 20:41:07 -0000 1.31 +++ distrib/sets/lists/comp/md.evbsh3 27 Nov 2024 17:48:07 -0000 @@ -32,6 +32,7 @@ ./usr/include/evbsh3/intr.h comp-c-include ./usr/include/evbsh3/limits.h comp-c-include ./usr/include/evbsh3/lock.h comp-c-include +./usr/include/evbsh3/lwp_private.h comp-c-include ./usr/include/evbsh3/math.h comp-c-include ./usr/include/evbsh3/mcontext.h comp-c-include ./usr/include/evbsh3/mmeye.h comp-obsolete obsolete Index: distrib/sets/lists/comp/md.ews4800mips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.ews4800mips,v retrieving revision 1.12 diff -u -u -r1.12 md.ews4800mips --- distrib/sets/lists/comp/md.ews4800mips 11 Jul 2024 20:41:07 -0000 1.12 +++ distrib/sets/lists/comp/md.ews4800mips 27 Nov 2024 17:48:07 -0000 @@ -28,6 +28,7 @@ ./usr/include/ews4800mips/limits.h comp-c-include ./usr/include/ews4800mips/lock.h comp-c-include ./usr/include/ews4800mips/locore.h comp-c-include +./usr/include/ews4800mips/lwp_private.h comp-c-include ./usr/include/ews4800mips/math.h comp-c-include ./usr/include/ews4800mips/mcontext.h comp-c-include ./usr/include/ews4800mips/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.hp300 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.hp300,v retrieving revision 1.65 diff -u -u -r1.65 md.hp300 --- distrib/sets/lists/comp/md.hp300 11 Jul 2024 20:41:07 -0000 1.65 +++ distrib/sets/lists/comp/md.hp300 27 Nov 2024 17:48:07 -0000 @@ -31,6 +31,7 @@ ./usr/include/hp300/kcore.h comp-c-include ./usr/include/hp300/limits.h comp-c-include ./usr/include/hp300/lock.h comp-c-include +./usr/include/hp300/lwp_private.h comp-c-include ./usr/include/hp300/math.h comp-c-include ./usr/include/hp300/mcontext.h comp-c-include ./usr/include/hp300/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.hpcmips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.hpcmips,v retrieving revision 1.36 diff -u -u -r1.36 md.hpcmips --- distrib/sets/lists/comp/md.hpcmips 11 Jul 2024 20:41:07 -0000 1.36 +++ distrib/sets/lists/comp/md.hpcmips 27 Nov 2024 17:48:07 -0000 @@ -36,6 +36,7 @@ ./usr/include/hpcmips/limits.h comp-c-include ./usr/include/hpcmips/lock.h comp-c-include ./usr/include/hpcmips/locore.h comp-c-include +./usr/include/hpcmips/lwp_private.h comp-c-include ./usr/include/hpcmips/math.h comp-c-include ./usr/include/hpcmips/mcontext.h comp-c-include ./usr/include/hpcmips/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.hpcsh =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.hpcsh,v retrieving revision 1.30 diff -u -u -r1.30 md.hpcsh --- distrib/sets/lists/comp/md.hpcsh 11 Jul 2024 20:41:07 -0000 1.30 +++ distrib/sets/lists/comp/md.hpcsh 27 Nov 2024 17:48:07 -0000 @@ -33,6 +33,7 @@ ./usr/include/hpcsh/intr.h comp-c-include ./usr/include/hpcsh/limits.h comp-c-include ./usr/include/hpcsh/lock.h comp-c-include +./usr/include/hpcsh/lwp_private.h comp-c-include ./usr/include/hpcsh/math.h comp-c-include ./usr/include/hpcsh/mcontext.h comp-c-include ./usr/include/hpcsh/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.hppa =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.hppa,v retrieving revision 1.20 diff -u -u -r1.20 md.hppa --- distrib/sets/lists/comp/md.hppa 4 Nov 2024 15:45:23 -0000 1.20 +++ distrib/sets/lists/comp/md.hppa 27 Nov 2024 17:48:07 -0000 @@ -44,6 +44,7 @@ ./usr/include/hp700/limits.h comp-obsolete obsolete ./usr/include/hp700/loadfile_machdep.h comp-obsolete obsolete ./usr/include/hp700/lock.h comp-obsolete obsolete +./usr/include/hp700/lwp_private.h comp-obsolete obsolete ./usr/include/hp700/math.h comp-obsolete obsolete ./usr/include/hp700/mcontext.h comp-obsolete obsolete ./usr/include/hp700/mutex.h comp-obsolete obsolete Index: distrib/sets/lists/comp/md.i386 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.i386,v retrieving revision 1.212 diff -u -u -r1.212 md.i386 --- distrib/sets/lists/comp/md.i386 4 Nov 2024 15:45:23 -0000 1.212 +++ distrib/sets/lists/comp/md.i386 27 Nov 2024 17:48:07 -0000 @@ -1232,6 +1232,7 @@ ./usr/include/i386/limits.h comp-c-include ./usr/include/i386/loadfile_machdep.h comp-obsolete obsolete ./usr/include/i386/lock.h comp-c-include +./usr/include/i386/lwp_private.h comp-c-include ./usr/include/i386/math.h comp-c-include ./usr/include/i386/mcontext.h comp-c-include ./usr/include/i386/mouse.h comp-obsolete obsolete @@ -1296,6 +1297,7 @@ ./usr/include/x86/intr.h comp-c-include ./usr/include/x86/intrdefs.h comp-c-include ./usr/include/x86/lock.h comp-c-include +./usr/include/x86/lwp_private.h comp-c-include ./usr/include/x86/math.h comp-c-include ./usr/include/x86/mtrr.h comp-c-include ./usr/include/x86/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.ia64 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.ia64,v retrieving revision 1.15 diff -u -u -r1.15 md.ia64 --- distrib/sets/lists/comp/md.ia64 4 Nov 2024 15:45:23 -0000 1.15 +++ distrib/sets/lists/comp/md.ia64 27 Nov 2024 17:48:07 -0000 @@ -51,6 +51,7 @@ ./usr/include/ia64/limits.h comp-c-include ./usr/include/ia64/loadfile_machdep.h comp-c-include ./usr/include/ia64/lock.h comp-c-include +./usr/include/ia64/lwp_private.h comp-c-include ./usr/include/ia64/math.h comp-c-include ./usr/include/ia64/mca_machdep.h comp-c-include ./usr/include/ia64/mcontext.h comp-c-include Index: distrib/sets/lists/comp/md.ibmnws =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.ibmnws,v retrieving revision 1.16 diff -u -u -r1.16 md.ibmnws --- distrib/sets/lists/comp/md.ibmnws 11 Jul 2024 20:41:07 -0000 1.16 +++ distrib/sets/lists/comp/md.ibmnws 27 Nov 2024 17:48:07 -0000 @@ -34,6 +34,7 @@ ./usr/include/ibmnws/kgdb.h comp-obsolete obsolete ./usr/include/ibmnws/limits.h comp-c-include ./usr/include/ibmnws/lock.h comp-c-include +./usr/include/ibmnws/lwp_private.h comp-c-include ./usr/include/ibmnws/math.h comp-c-include ./usr/include/ibmnws/mcontext.h comp-c-include ./usr/include/ibmnws/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.landisk =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.landisk,v retrieving revision 1.8 diff -u -u -r1.8 md.landisk --- distrib/sets/lists/comp/md.landisk 11 Jul 2024 20:41:07 -0000 1.8 +++ distrib/sets/lists/comp/md.landisk 27 Nov 2024 17:48:07 -0000 @@ -32,6 +32,7 @@ ./usr/include/landisk/limits.h comp-c-include ./usr/include/landisk/loadfile_machdep.h comp-c-include ./usr/include/landisk/lock.h comp-c-include +./usr/include/landisk/lwp_private.h comp-c-include ./usr/include/landisk/math.h comp-c-include ./usr/include/landisk/mcontext.h comp-c-include ./usr/include/landisk/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.luna68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.luna68k,v retrieving revision 1.24 diff -u -u -r1.24 md.luna68k --- distrib/sets/lists/comp/md.luna68k 11 Jul 2024 20:41:07 -0000 1.24 +++ distrib/sets/lists/comp/md.luna68k 27 Nov 2024 17:48:07 -0000 @@ -31,6 +31,7 @@ ./usr/include/luna68k/lcd.h comp-c-include ./usr/include/luna68k/limits.h comp-c-include ./usr/include/luna68k/lock.h comp-c-include +./usr/include/luna68k/lwp_private.h comp-c-include ./usr/include/luna68k/math.h comp-c-include ./usr/include/luna68k/mcontext.h comp-c-include ./usr/include/luna68k/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.mac68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.mac68k,v retrieving revision 1.62 diff -u -u -r1.62 md.mac68k --- distrib/sets/lists/comp/md.mac68k 11 Jul 2024 20:41:07 -0000 1.62 +++ distrib/sets/lists/comp/md.mac68k 27 Nov 2024 17:48:07 -0000 @@ -34,6 +34,7 @@ ./usr/include/mac68k/keyboard.h comp-c-include ./usr/include/mac68k/limits.h comp-c-include ./usr/include/mac68k/lock.h comp-c-include +./usr/include/mac68k/lwp_private.h comp-c-include ./usr/include/mac68k/math.h comp-c-include ./usr/include/mac68k/mcontext.h comp-c-include ./usr/include/mac68k/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.macppc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.macppc,v retrieving revision 1.43 diff -u -u -r1.43 md.macppc --- distrib/sets/lists/comp/md.macppc 11 Jul 2024 20:41:07 -0000 1.43 +++ distrib/sets/lists/comp/md.macppc 27 Nov 2024 17:48:07 -0000 @@ -38,6 +38,7 @@ ./usr/include/macppc/keyboard.h comp-c-include ./usr/include/macppc/limits.h comp-c-include ./usr/include/macppc/lock.h comp-c-include +./usr/include/macppc/lwp_private.h comp-c-include ./usr/include/macppc/machine_type.h comp-obsolete obsolete ./usr/include/macppc/math.h comp-c-include ./usr/include/macppc/mcontext.h comp-c-include Index: distrib/sets/lists/comp/md.mipsco =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.mipsco,v retrieving revision 1.26 diff -u -u -r1.26 md.mipsco --- distrib/sets/lists/comp/md.mipsco 11 Jul 2024 20:41:07 -0000 1.26 +++ distrib/sets/lists/comp/md.mipsco 27 Nov 2024 17:48:07 -0000 @@ -35,6 +35,7 @@ ./usr/include/mipsco/limits.h comp-c-include ./usr/include/mipsco/lock.h comp-c-include ./usr/include/mipsco/locore.h comp-c-include +./usr/include/mipsco/lwp_private.h comp-c-include ./usr/include/mipsco/mainboard.h comp-c-include ./usr/include/mipsco/math.h comp-c-include ./usr/include/mipsco/mcontext.h comp-c-include Index: distrib/sets/lists/comp/md.mmeye =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.mmeye,v retrieving revision 1.34 diff -u -u -r1.34 md.mmeye --- distrib/sets/lists/comp/md.mmeye 11 Jul 2024 20:41:07 -0000 1.34 +++ distrib/sets/lists/comp/md.mmeye 27 Nov 2024 17:48:07 -0000 @@ -34,6 +34,7 @@ ./usr/include/mmeye/limits.h comp-c-include ./usr/include/mmeye/loadfile_machdep.h comp-obsolete obsolete ./usr/include/mmeye/lock.h comp-c-include +./usr/include/mmeye/lwp_private.h comp-c-include ./usr/include/mmeye/math.h comp-c-include ./usr/include/mmeye/mcontext.h comp-c-include ./usr/include/mmeye/mmeye.h comp-c-include Index: distrib/sets/lists/comp/md.mvme68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.mvme68k,v retrieving revision 1.40 diff -u -u -r1.40 md.mvme68k --- distrib/sets/lists/comp/md.mvme68k 11 Jul 2024 20:41:07 -0000 1.40 +++ distrib/sets/lists/comp/md.mvme68k 27 Nov 2024 17:48:07 -0000 @@ -29,6 +29,7 @@ ./usr/include/mvme68k/kcore.h comp-c-include ./usr/include/mvme68k/limits.h comp-c-include ./usr/include/mvme68k/lock.h comp-c-include +./usr/include/mvme68k/lwp_private.h comp-c-include ./usr/include/mvme68k/math.h comp-c-include ./usr/include/mvme68k/mcontext.h comp-c-include ./usr/include/mvme68k/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.mvmeppc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.mvmeppc,v retrieving revision 1.20 diff -u -u -r1.20 md.mvmeppc --- distrib/sets/lists/comp/md.mvmeppc 11 Jul 2024 20:41:07 -0000 1.20 +++ distrib/sets/lists/comp/md.mvmeppc 27 Nov 2024 17:48:07 -0000 @@ -35,6 +35,7 @@ ./usr/include/mvmeppc/kgdb.h comp-obsolete obsolete ./usr/include/mvmeppc/limits.h comp-c-include ./usr/include/mvmeppc/lock.h comp-c-include +./usr/include/mvmeppc/lwp_private.h comp-c-include ./usr/include/mvmeppc/math.h comp-c-include ./usr/include/mvmeppc/mcontext.h comp-c-include ./usr/include/mvmeppc/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.news68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.news68k,v retrieving revision 1.30 diff -u -u -r1.30 md.news68k --- distrib/sets/lists/comp/md.news68k 11 Jul 2024 20:41:07 -0000 1.30 +++ distrib/sets/lists/comp/md.news68k 27 Nov 2024 17:48:07 -0000 @@ -31,6 +31,7 @@ ./usr/include/news68k/kcore.h comp-c-include ./usr/include/news68k/limits.h comp-c-include ./usr/include/news68k/lock.h comp-c-include +./usr/include/news68k/lwp_private.h comp-c-include ./usr/include/news68k/math.h comp-c-include ./usr/include/news68k/mcontext.h comp-c-include ./usr/include/news68k/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.newsmips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.newsmips,v retrieving revision 1.35 diff -u -u -r1.35 md.newsmips --- distrib/sets/lists/comp/md.newsmips 11 Jul 2024 20:41:07 -0000 1.35 +++ distrib/sets/lists/comp/md.newsmips 27 Nov 2024 17:48:07 -0000 @@ -37,6 +37,7 @@ ./usr/include/newsmips/limits.h comp-c-include ./usr/include/newsmips/lock.h comp-c-include ./usr/include/newsmips/locore.h comp-c-include +./usr/include/newsmips/lwp_private.h comp-c-include ./usr/include/newsmips/machConst.h comp-c-include ./usr/include/newsmips/math.h comp-c-include ./usr/include/newsmips/mcontext.h comp-c-include Index: distrib/sets/lists/comp/md.next68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.next68k,v retrieving revision 1.35 diff -u -u -r1.35 md.next68k --- distrib/sets/lists/comp/md.next68k 11 Jul 2024 20:41:07 -0000 1.35 +++ distrib/sets/lists/comp/md.next68k 27 Nov 2024 17:48:07 -0000 @@ -32,6 +32,7 @@ ./usr/include/next68k/kcore.h comp-c-include ./usr/include/next68k/limits.h comp-c-include ./usr/include/next68k/lock.h comp-c-include +./usr/include/next68k/lwp_private.h comp-c-include ./usr/include/next68k/math.h comp-c-include ./usr/include/next68k/mcontext.h comp-c-include ./usr/include/next68k/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.ofppc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.ofppc,v retrieving revision 1.20 diff -u -u -r1.20 md.ofppc --- distrib/sets/lists/comp/md.ofppc 11 Jul 2024 20:41:07 -0000 1.20 +++ distrib/sets/lists/comp/md.ofppc 27 Nov 2024 17:48:07 -0000 @@ -32,6 +32,7 @@ ./usr/include/ofppc/kcore.h comp-c-include ./usr/include/ofppc/limits.h comp-c-include ./usr/include/ofppc/lock.h comp-c-include +./usr/include/ofppc/lwp_private.h comp-c-include ./usr/include/ofppc/math.h comp-c-include ./usr/include/ofppc/mcontext.h comp-c-include ./usr/include/ofppc/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.or1k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.or1k,v retrieving revision 1.16 diff -u -u -r1.16 md.or1k --- distrib/sets/lists/comp/md.or1k 4 Nov 2024 15:45:23 -0000 1.16 +++ distrib/sets/lists/comp/md.or1k 27 Nov 2024 17:48:07 -0000 @@ -35,6 +35,7 @@ ./usr/include/or1k/kcore.h comp-c-include ./usr/include/or1k/limits.h comp-c-include ./usr/include/or1k/lock.h comp-c-include +./usr/include/or1k/lwp_private.h comp-c-include ./usr/include/or1k/math.h comp-c-include ./usr/include/or1k/mcontext.h comp-c-include ./usr/include/or1k/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.playstation2 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.playstation2,v retrieving revision 1.16 diff -u -u -r1.16 md.playstation2 --- distrib/sets/lists/comp/md.playstation2 11 Jul 2024 20:41:07 -0000 1.16 +++ distrib/sets/lists/comp/md.playstation2 27 Nov 2024 17:48:07 -0000 @@ -30,6 +30,7 @@ ./usr/include/playstation2/limits.h comp-c-include ./usr/include/playstation2/lock.h comp-c-include ./usr/include/playstation2/locore.h comp-c-include +./usr/include/playstation2/lwp_private.h comp-c-include ./usr/include/playstation2/math.h comp-c-include ./usr/include/playstation2/mcontext.h comp-c-include ./usr/include/playstation2/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.pmax =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.pmax,v retrieving revision 1.69 diff -u -u -r1.69 md.pmax --- distrib/sets/lists/comp/md.pmax 11 Jul 2024 20:41:07 -0000 1.69 +++ distrib/sets/lists/comp/md.pmax 27 Nov 2024 17:48:07 -0000 @@ -39,6 +39,7 @@ ./usr/include/pmax/limits.h comp-c-include ./usr/include/pmax/lock.h comp-c-include ./usr/include/pmax/locore.h comp-c-include +./usr/include/pmax/lwp_private.h comp-c-include ./usr/include/pmax/math.h comp-c-include ./usr/include/pmax/mcontext.h comp-c-include ./usr/include/pmax/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.prep =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.prep,v retrieving revision 1.34 diff -u -u -r1.34 md.prep --- distrib/sets/lists/comp/md.prep 11 Jul 2024 20:41:07 -0000 1.34 +++ distrib/sets/lists/comp/md.prep 27 Nov 2024 17:48:07 -0000 @@ -36,6 +36,7 @@ ./usr/include/prep/kgdb.h comp-obsolete obsolete ./usr/include/prep/limits.h comp-c-include ./usr/include/prep/lock.h comp-c-include +./usr/include/prep/lwp_private.h comp-c-include ./usr/include/prep/math.h comp-c-include ./usr/include/prep/mcontext.h comp-c-include ./usr/include/prep/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.rs6000 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.rs6000,v retrieving revision 1.12 diff -u -u -r1.12 md.rs6000 --- distrib/sets/lists/comp/md.rs6000 11 Jul 2024 20:41:07 -0000 1.12 +++ distrib/sets/lists/comp/md.rs6000 27 Nov 2024 17:48:07 -0000 @@ -29,6 +29,7 @@ ./usr/include/rs6000/kcore.h comp-c-include ./usr/include/rs6000/limits.h comp-c-include ./usr/include/rs6000/lock.h comp-c-include +./usr/include/rs6000/lwp_private.h comp-c-include ./usr/include/rs6000/math.h comp-c-include ./usr/include/rs6000/mcontext.h comp-c-include ./usr/include/rs6000/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.sandpoint =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.sandpoint,v retrieving revision 1.22 diff -u -u -r1.22 md.sandpoint --- distrib/sets/lists/comp/md.sandpoint 11 Jul 2024 20:41:07 -0000 1.22 +++ distrib/sets/lists/comp/md.sandpoint 27 Nov 2024 17:48:07 -0000 @@ -36,6 +36,7 @@ ./usr/include/sandpoint/kgdb.h comp-obsolete obsolete ./usr/include/sandpoint/limits.h comp-c-include ./usr/include/sandpoint/lock.h comp-c-include +./usr/include/sandpoint/lwp_private.h comp-c-include ./usr/include/sandpoint/math.h comp-c-include ./usr/include/sandpoint/mcontext.h comp-c-include ./usr/include/sandpoint/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.sbmips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.sbmips,v retrieving revision 1.20 diff -u -u -r1.20 md.sbmips --- distrib/sets/lists/comp/md.sbmips 11 Jul 2024 20:41:07 -0000 1.20 +++ distrib/sets/lists/comp/md.sbmips 27 Nov 2024 17:48:07 -0000 @@ -30,6 +30,7 @@ ./usr/include/sbmips/limits.h comp-c-include ./usr/include/sbmips/lock.h comp-c-include ./usr/include/sbmips/locore.h comp-c-include +./usr/include/sbmips/lwp_private.h comp-c-include ./usr/include/sbmips/math.h comp-c-include ./usr/include/sbmips/mcontext.h comp-c-include ./usr/include/sbmips/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.sgimips =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.sgimips,v retrieving revision 1.24 diff -u -u -r1.24 md.sgimips --- distrib/sets/lists/comp/md.sgimips 11 Jul 2024 20:41:07 -0000 1.24 +++ distrib/sets/lists/comp/md.sgimips 27 Nov 2024 17:48:07 -0000 @@ -34,6 +34,7 @@ ./usr/include/sgimips/limits.h comp-c-include ./usr/include/sgimips/lock.h comp-c-include ./usr/include/sgimips/locore.h comp-c-include +./usr/include/sgimips/lwp_private.h comp-c-include ./usr/include/sgimips/math.h comp-c-include ./usr/include/sgimips/mcontext.h comp-c-include ./usr/include/sgimips/mips_opcode.h comp-c-include Index: distrib/sets/lists/comp/md.sparc =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.sparc,v retrieving revision 1.107 diff -u -u -r1.107 md.sparc --- distrib/sets/lists/comp/md.sparc 4 Nov 2024 15:45:23 -0000 1.107 +++ distrib/sets/lists/comp/md.sparc 27 Nov 2024 17:48:07 -0000 @@ -58,6 +58,7 @@ ./usr/include/sparc/kcore.h comp-c-include ./usr/include/sparc/limits.h comp-c-include ./usr/include/sparc/lock.h comp-c-include +./usr/include/sparc/lwp_private.h comp-c-include ./usr/include/sparc/math.h comp-c-include ./usr/include/sparc/mcontext.h comp-c-include ./usr/include/sparc/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.sparc64 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.sparc64,v retrieving revision 1.217 diff -u -u -r1.217 md.sparc64 --- distrib/sets/lists/comp/md.sparc64 11 Jul 2024 20:41:07 -0000 1.217 +++ distrib/sets/lists/comp/md.sparc64 27 Nov 2024 17:48:07 -0000 @@ -62,6 +62,7 @@ ./usr/include/sparc/kcore.h comp-c-include ./usr/include/sparc/limits.h comp-c-include ./usr/include/sparc/lock.h comp-c-include +./usr/include/sparc/lwp_private.h comp-c-include ./usr/include/sparc/math.h comp-c-include ./usr/include/sparc/mcontext.h comp-c-include ./usr/include/sparc/mutex.h comp-c-include @@ -134,6 +135,7 @@ ./usr/include/sparc64/kcore.h comp-c-include ./usr/include/sparc64/limits.h comp-c-include ./usr/include/sparc64/lock.h comp-c-include +./usr/include/sparc64/lwp_private.h comp-c-include ./usr/include/sparc64/math.h comp-c-include ./usr/include/sparc64/mcontext.h comp-c-include ./usr/include/sparc64/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.sun2 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.sun2,v retrieving revision 1.24 diff -u -u -r1.24 md.sun2 --- distrib/sets/lists/comp/md.sun2 11 Jul 2024 20:41:07 -0000 1.24 +++ distrib/sets/lists/comp/md.sun2 27 Nov 2024 17:48:07 -0000 @@ -36,6 +36,7 @@ ./usr/include/sun2/leds.h comp-c-include ./usr/include/sun2/limits.h comp-c-include ./usr/include/sun2/lock.h comp-c-include +./usr/include/sun2/lwp_private.h comp-c-include ./usr/include/sun2/math.h comp-c-include ./usr/include/sun2/mcontext.h comp-c-include ./usr/include/sun2/mon.h comp-c-include Index: distrib/sets/lists/comp/md.sun3 =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.sun3,v retrieving revision 1.66 diff -u -u -r1.66 md.sun3 --- distrib/sets/lists/comp/md.sun3 11 Jul 2024 20:41:07 -0000 1.66 +++ distrib/sets/lists/comp/md.sun3 27 Nov 2024 17:48:07 -0000 @@ -39,6 +39,7 @@ ./usr/include/sun3/leds.h comp-c-include ./usr/include/sun3/limits.h comp-c-include ./usr/include/sun3/lock.h comp-c-include +./usr/include/sun3/lwp_private.h comp-c-include ./usr/include/sun3/math.h comp-c-include ./usr/include/sun3/mc68851.h comp-c-include ./usr/include/sun3/mcontext.h comp-c-include Index: distrib/sets/lists/comp/md.vax =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.vax,v retrieving revision 1.58 diff -u -u -r1.58 md.vax --- distrib/sets/lists/comp/md.vax 4 Nov 2024 15:45:23 -0000 1.58 +++ distrib/sets/lists/comp/md.vax 27 Nov 2024 17:48:07 -0000 @@ -47,6 +47,7 @@ ./usr/include/vax/leds.h comp-c-include ./usr/include/vax/limits.h comp-c-include ./usr/include/vax/lock.h comp-c-include +./usr/include/vax/lwp_private.h comp-c-include ./usr/include/vax/macros.h comp-c-include ./usr/include/vax/math.h comp-c-include ./usr/include/vax/mcontext.h comp-c-include Index: distrib/sets/lists/comp/md.virt68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.virt68k,v retrieving revision 1.2 diff -u -u -r1.2 md.virt68k --- distrib/sets/lists/comp/md.virt68k 11 Jul 2024 20:41:07 -0000 1.2 +++ distrib/sets/lists/comp/md.virt68k 27 Nov 2024 17:48:07 -0000 @@ -27,6 +27,7 @@ ./usr/include/virt68k/kcore.h comp-c-include ./usr/include/virt68k/limits.h comp-c-include ./usr/include/virt68k/lock.h comp-c-include +./usr/include/virt68k/lwp_private.h comp-c-include ./usr/include/virt68k/math.h comp-c-include ./usr/include/virt68k/mcontext.h comp-c-include ./usr/include/virt68k/mutex.h comp-c-include Index: distrib/sets/lists/comp/md.x68k =================================================================== RCS file: /cvsroot/src/distrib/sets/lists/comp/md.x68k,v retrieving revision 1.63 diff -u -u -r1.63 md.x68k --- distrib/sets/lists/comp/md.x68k 11 Jul 2024 20:41:07 -0000 1.63 +++ distrib/sets/lists/comp/md.x68k 27 Nov 2024 17:48:07 -0000 @@ -37,6 +37,7 @@ ./usr/include/x68k/kcore.h comp-c-include ./usr/include/x68k/limits.h comp-c-include ./usr/include/x68k/lock.h comp-c-include +./usr/include/x68k/lwp_private.h comp-c-include ./usr/include/x68k/math.h comp-c-include ./usr/include/x68k/mcontext.h comp-c-include ./usr/include/x68k/mutex.h comp-c-include Index: external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp =================================================================== RCS file: /cvsroot/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp,v retrieving revision 1.3 diff -u -u -r1.3 sanitizer_linux_libcdep.cpp --- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp 31 Jul 2023 01:44:56 -0000 1.3 +++ external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp 27 Nov 2024 17:48:10 -0000 @@ -28,10 +28,6 @@ #include "sanitizer_placement_new.h" #include "sanitizer_procmaps.h" -#if SANITIZER_NETBSD -#define _RTLD_SOURCE // for __lwp_gettcb_fast() / __lwp_getprivate_fast() -#endif - #include // for dlsym() #include #include @@ -59,6 +55,8 @@ #include #include #include +// for __lwp_gettcb_fast() / __lwp_getprivate_fast() +#include #endif #if SANITIZER_SOLARIS Index: lib/libc/arch/m68k/gen/_lwp.c =================================================================== RCS file: /cvsroot/src/lib/libc/arch/m68k/gen/_lwp.c,v retrieving revision 1.9 diff -u -u -r1.9 _lwp.c --- lib/libc/arch/m68k/gen/_lwp.c 2 Apr 2023 07:26:17 -0000 1.9 +++ lib/libc/arch/m68k/gen/_lwp.c 27 Nov 2024 17:48:12 -0000 @@ -41,6 +41,8 @@ #include #include +#include + void _lwp_makecontext(ucontext_t *u, void (*start)(void *), void *arg, void *tcb, caddr_t stack_base, size_t stack_size) Index: lib/libc/arch/mips/gen/_lwp.c =================================================================== RCS file: /cvsroot/src/lib/libc/arch/mips/gen/_lwp.c,v retrieving revision 1.8 diff -u -u -r1.8 _lwp.c --- lib/libc/arch/mips/gen/_lwp.c 29 Apr 2011 08:05:22 -0000 1.8 +++ lib/libc/arch/mips/gen/_lwp.c 27 Nov 2024 17:48:12 -0000 @@ -40,6 +40,8 @@ #include #include +#include + #if defined(__mips_o32) || defined(__mips_o64) #define CALLFRAME_SIZ (6 * sizeof(void *)) #else Index: lib/libc/arch/or1k/gen/_lwp.c =================================================================== RCS file: /cvsroot/src/lib/libc/arch/or1k/gen/_lwp.c,v retrieving revision 1.1 diff -u -u -r1.1 _lwp.c --- lib/libc/arch/or1k/gen/_lwp.c 3 Sep 2014 19:34:25 -0000 1.1 +++ lib/libc/arch/or1k/gen/_lwp.c 27 Nov 2024 17:48:12 -0000 @@ -47,6 +47,8 @@ #include #include +#include + void _lwp_makecontext(ucontext_t *u, void (*start)(void *), void *arg, void *tcb, caddr_t stack_base, size_t stack_size) Index: lib/libc/arch/powerpc/gen/_lwp.c =================================================================== RCS file: /cvsroot/src/lib/libc/arch/powerpc/gen/_lwp.c,v retrieving revision 1.8 diff -u -u -r1.8 _lwp.c --- lib/libc/arch/powerpc/gen/_lwp.c 22 Jun 2020 06:49:04 -0000 1.8 +++ lib/libc/arch/powerpc/gen/_lwp.c 27 Nov 2024 17:48:12 -0000 @@ -47,6 +47,8 @@ #include #include +#include + void _lwp_makecontext(ucontext_t *u, void (*start)(void *), void *arg, void *tcb, caddr_t stack_base, size_t stack_size) Index: lib/libc/arch/riscv/gen/_lwp.c =================================================================== RCS file: /cvsroot/src/lib/libc/arch/riscv/gen/_lwp.c,v retrieving revision 1.1 diff -u -u -r1.1 _lwp.c --- lib/libc/arch/riscv/gen/_lwp.c 19 Sep 2014 17:36:25 -0000 1.1 +++ lib/libc/arch/riscv/gen/_lwp.c 27 Nov 2024 17:48:12 -0000 @@ -47,6 +47,8 @@ #include #include +#include + void _lwp_makecontext(ucontext_t *u, void (*start)(void *), void *arg, void *tcb, caddr_t stack_base, size_t stack_size) Index: lib/libc/tls/tls.c =================================================================== RCS file: /cvsroot/src/lib/libc/tls/tls.c,v retrieving revision 1.15 diff -u -u -r1.15 tls.c --- lib/libc/tls/tls.c 20 Jan 2024 14:52:49 -0000 1.15 +++ lib/libc/tls/tls.c 27 Nov 2024 17:48:12 -0000 @@ -52,6 +52,8 @@ #include #include +#include + __dso_hidden void __libc_static_tls_setup(void); static bool is_dynamic; Index: lib/libpthread/pthread_int.h =================================================================== RCS file: /cvsroot/src/lib/libpthread/pthread_int.h,v retrieving revision 1.111 diff -u -u -r1.111 pthread_int.h --- lib/libpthread/pthread_int.h 25 May 2023 14:30:03 -0000 1.111 +++ lib/libpthread/pthread_int.h 27 Nov 2024 17:48:12 -0000 @@ -50,6 +50,8 @@ #include #include +#include + #ifdef __GNUC__ #define PTHREAD_HIDE __attribute__ ((visibility("hidden"))) #else Index: libexec/ld.elf_so/tls.c =================================================================== RCS file: /cvsroot/src/libexec/ld.elf_so/tls.c,v retrieving revision 1.22 diff -u -u -r1.22 tls.c --- libexec/ld.elf_so/tls.c 23 Jul 2024 22:00:00 -0000 1.22 +++ libexec/ld.elf_so/tls.c 27 Nov 2024 17:48:12 -0000 @@ -51,6 +51,8 @@ #include "debug.h" #include "rtld.h" +#include + #if defined(__HAVE_TLS_VARIANT_I) || defined(__HAVE_TLS_VARIANT_II) static struct tls_tcb *_rtld_tls_allocate_locked(void); Index: libexec/ld.elf_so/arch/i386/mdreloc.c =================================================================== RCS file: /cvsroot/src/libexec/ld.elf_so/arch/i386/mdreloc.c,v retrieving revision 1.46 diff -u -u -r1.46 mdreloc.c --- libexec/ld.elf_so/arch/i386/mdreloc.c 4 Nov 2024 15:46:45 -0000 1.46 +++ libexec/ld.elf_so/arch/i386/mdreloc.c 27 Nov 2024 17:48:12 -0000 @@ -6,7 +6,7 @@ #endif /* not lint */ #include -#include +#include #include "debug.h" #include "rtld.h" Index: libexec/ld.elf_so/arch/m68k/mdreloc.c =================================================================== RCS file: /cvsroot/src/libexec/ld.elf_so/arch/m68k/mdreloc.c,v retrieving revision 1.34 diff -u -u -r1.34 mdreloc.c --- libexec/ld.elf_so/arch/m68k/mdreloc.c 4 Jun 2023 01:24:57 -0000 1.34 +++ libexec/ld.elf_so/arch/m68k/mdreloc.c 27 Nov 2024 17:48:12 -0000 @@ -10,6 +10,8 @@ #include "debug.h" #include "rtld.h" +#include + void _rtld_bind_start(void); void _rtld_relocate_nonplt_self(Elf_Dyn *, Elf_Addr); caddr_t _rtld_bind(const Obj_Entry *, Elf_Word); Index: libexec/ld.elf_so/arch/mips/mips_reloc.c =================================================================== RCS file: /cvsroot/src/libexec/ld.elf_so/arch/mips/mips_reloc.c,v retrieving revision 1.77 diff -u -u -r1.77 mips_reloc.c --- libexec/ld.elf_so/arch/mips/mips_reloc.c 6 Aug 2024 20:26:45 -0000 1.77 +++ libexec/ld.elf_so/arch/mips/mips_reloc.c 27 Nov 2024 17:48:12 -0000 @@ -59,6 +59,8 @@ #include "debug.h" #include "rtld.h" +#include + #ifdef __mips_o32 #define SUPPORT_OLD_BROKEN_LD #endif Index: libexec/ld.elf_so/arch/or1k/mdreloc.c =================================================================== RCS file: /cvsroot/src/libexec/ld.elf_so/arch/or1k/mdreloc.c,v retrieving revision 1.5 diff -u -u -r1.5 mdreloc.c --- libexec/ld.elf_so/arch/or1k/mdreloc.c 3 Aug 2024 21:59:58 -0000 1.5 +++ libexec/ld.elf_so/arch/or1k/mdreloc.c 27 Nov 2024 17:48:12 -0000 @@ -44,6 +44,8 @@ #include "debug.h" #include "rtld.h" +#include + void _rtld_bind_start(void); Elf_Addr _rtld_bind(const Obj_Entry *, Elf_Word); void _rtld_relocate_nonplt_self(Elf_Dyn *, Elf_Addr); Index: libexec/ld.elf_so/arch/powerpc/ppc_reloc.c =================================================================== RCS file: /cvsroot/src/libexec/ld.elf_so/arch/powerpc/ppc_reloc.c,v retrieving revision 1.65 diff -u -u -r1.65 ppc_reloc.c --- libexec/ld.elf_so/arch/powerpc/ppc_reloc.c 3 Aug 2024 21:59:58 -0000 1.65 +++ libexec/ld.elf_so/arch/powerpc/ppc_reloc.c 27 Nov 2024 17:48:12 -0000 @@ -56,6 +56,8 @@ #include "debug.h" #include "rtld.h" +#include + void _rtld_powerpc_pltcall(Elf_Word); void _rtld_powerpc_pltresolve(Elf_Word, Elf_Word); Index: sys/arch/aarch64/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/aarch64/include/Makefile,v retrieving revision 1.4 diff -u -u -r1.4 Makefile --- sys/arch/aarch64/include/Makefile 10 May 2020 11:04:09 -0000 1.4 +++ sys/arch/aarch64/include/Makefile 27 Nov 2024 17:48:12 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h pte.h ptrace.h \ Index: sys/arch/aarch64/include/lwp_private.h =================================================================== RCS file: sys/arch/aarch64/include/lwp_private.h diff -N sys/arch/aarch64/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/aarch64/include/lwp_private.h 27 Nov 2024 17:48:12 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD: lwp_private.h,v 1.4 2018/04/01 04:35:03 ryo Exp $ */ + +#include Index: sys/arch/acorn32/include/lwp_private.h =================================================================== RCS file: sys/arch/acorn32/include/lwp_private.h diff -N sys/arch/acorn32/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/acorn32/include/lwp_private.h 27 Nov 2024 17:48:12 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/algor/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/algor/include/Makefile,v retrieving revision 1.16 diff -u -u -r1.16 Makefile --- sys/arch/algor/include/Makefile 12 Jul 2018 10:46:41 -0000 1.16 +++ sys/arch/algor/include/Makefile 27 Nov 2024 17:48:12 -0000 @@ -13,7 +13,7 @@ intr.h \ isa_machdep.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pci_machdep.h \ pmap.h proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/algor/include/lwp_private.h =================================================================== RCS file: sys/arch/algor/include/lwp_private.h diff -N sys/arch/algor/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/algor/include/lwp_private.h 27 Nov 2024 17:48:12 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/alpha/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/alpha/include/Makefile,v retrieving revision 1.36 diff -u -u -r1.36 Makefile --- sys/arch/alpha/include/Makefile 4 Nov 2024 15:45:23 -0000 1.36 +++ sys/arch/alpha/include/Makefile 27 Nov 2024 17:48:12 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2024/11/04 15:45:23 christos Exp $ +# $NetBSD: Makefile,v 1.35 2024/11/03 22:24:21 christos Exp $ INCSDIR= /usr/include/alpha @@ -13,7 +13,7 @@ intr.h \ joystick.h \ kbio.h kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ pal.h param.h pcb.h pio.h pmap.h proc.h profile.h prom.h psl.h \ pte.h ptrace.h \ Index: sys/arch/alpha/include/lwp_private.h =================================================================== RCS file: sys/arch/alpha/include/lwp_private.h diff -N sys/arch/alpha/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/alpha/include/lwp_private.h 27 Nov 2024 17:48:12 -0000 @@ -0,0 +1,54 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:21 christos Exp $ */ + +/*- + * Copyright (c) 2001 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _ALPHA_LWP_PRIVATE_H_ +#define _ALPHA_LWP_PRIVATE_H_ + +#include +#include + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + register void *__tmp __asm("$0"); + + __asm volatile("call_pal %1 # PAL_rdunique" + : "=r" (__tmp) + : "i" (0x009e /* PAL_rdunique */)); + + return __tmp; +} + +__END_DECLS + +#endif /* !_ALPHA_LWP_PRIVATE_H_ */ Index: sys/arch/alpha/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/alpha/include/mcontext.h,v retrieving revision 1.14 diff -u -u -r1.14 mcontext.h --- sys/arch/alpha/include/mcontext.h 4 Nov 2024 15:45:23 -0000 1.14 +++ sys/arch/alpha/include/mcontext.h 27 Nov 2024 17:48:12 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.14 2024/11/04 15:45:23 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.13 2024/11/03 22:24:21 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -104,24 +104,4 @@ #define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc) -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - register void *__tmp __asm("$0"); - - __asm volatile("call_pal %1 # PAL_rdunique" - : "=r" (__tmp) - : "i" (0x009e /* PAL_rdunique */)); - - return __tmp; -} -__END_DECLS - -#endif - #endif /* !_ALPHA_MCONTEXT_H_ */ Index: sys/arch/amd64/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/amd64/include/Makefile,v retrieving revision 1.24 diff -u -u -r1.24 Makefile --- sys/arch/amd64/include/Makefile 4 Nov 2024 15:45:23 -0000 1.24 +++ sys/arch/amd64/include/Makefile 27 Nov 2024 17:48:12 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2024/11/04 15:45:23 christos Exp $ +# $NetBSD: Makefile,v 1.23 2024/11/03 22:24:21 christos Exp $ INCSDIR= /usr/include/amd64 @@ -19,7 +19,7 @@ netbsd32_machdep.h \ param.h pcb.h pci_machdep.h pio.h pmap.h proc.h \ profile.h psl.h pte.h ptrace.h \ - reg.h rwlock.h \ + lwp_private.h reg.h rwlock.h \ segments.h setjmp.h signal.h sljit_machdep.h specialreg.h sysarch.h \ trap.h tss.h types.h \ userret.h \ Index: sys/arch/amd64/include/lwp_private.h =================================================================== RCS file: sys/arch/amd64/include/lwp_private.h diff -N sys/arch/amd64/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/amd64/include/lwp_private.h 27 Nov 2024 17:48:12 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:21 christos Exp $ */ + +#include Index: sys/arch/amd64/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/amd64/include/mcontext.h,v retrieving revision 1.23 diff -u -u -r1.23 mcontext.h --- sys/arch/amd64/include/mcontext.h 4 Nov 2024 15:45:23 -0000 1.23 +++ sys/arch/amd64/include/mcontext.h 27 Nov 2024 17:48:12 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.23 2024/11/04 15:45:23 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.22 2024/11/03 22:24:21 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -84,24 +84,6 @@ #define __UCONTEXT_SIZE 784 -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - void *__tmp; - - __asm volatile("movq %%fs:0, %0" : "=r" (__tmp)); - - return __tmp; -} -__END_DECLS - -#endif - #ifdef _KERNEL /* Index: sys/arch/amiga/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/amiga/include/Makefile,v retrieving revision 1.27 diff -u -u -r1.27 Makefile --- sys/arch/amiga/include/Makefile 12 Jul 2018 10:46:41 -0000 1.27 +++ sys/arch/amiga/include/Makefile 27 Nov 2024 17:48:12 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/amiga/include/lwp_private.h =================================================================== RCS file: sys/arch/amiga/include/lwp_private.h diff -N sys/arch/amiga/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/amiga/include/lwp_private.h 27 Nov 2024 17:48:12 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/amigappc/include/lwp_private.h =================================================================== RCS file: sys/arch/amigappc/include/lwp_private.h diff -N sys/arch/amigappc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/amigappc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/arc/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/arc/include/Makefile,v retrieving revision 1.33 diff -u -u -r1.33 Makefile --- sys/arch/arc/include/Makefile 12 Jul 2018 10:46:42 -0000 1.33 +++ sys/arch/arc/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -13,7 +13,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h kdbparam.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mips_opcode.h mouse.h mutex.h \ param.h pcb.h pccons.h pmap.h proc.h profile.h psl.h pte.h \ ptrace.h \ Index: sys/arch/arc/include/lwp_private.h =================================================================== RCS file: sys/arch/arc/include/lwp_private.h diff -N sys/arch/arc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/arc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/arm/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/arm/include/Makefile,v retrieving revision 1.54 diff -u -u -r1.54 Makefile --- sys/arch/arm/include/Makefile 4 Nov 2024 15:45:23 -0000 1.54 +++ sys/arch/arm/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.54 2024/11/04 15:45:23 christos Exp $ +# $NetBSD: Makefile,v 1.53 2024/11/03 22:24:21 christos Exp $ INCSDIR= /usr/include/arm @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ joystick.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h proc.h profile.h rwlock.h \ ptrace.h \ Index: sys/arch/arm/include/lwp_private.h =================================================================== RCS file: sys/arch/arm/include/lwp_private.h diff -N sys/arch/arm/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/arm/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,81 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:21 christos Exp $ */ + +/*- + * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein and by Jason R. Thorpe of Wasabi Systems, Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _ARM_LWP_PRIVATE_H_ +#define _ARM_LWP_PRIVATE_H_ + +#include +#include + +#include + +#if defined(__aarch64__) + +__BEGIN_DECLS +static __inline void * +__lwp_getprivate_fast(void) +{ + void *__tpidr; + __asm __volatile("mrs\t%0, tpidr_el0" : "=r"(__tpidr)); + return __tpidr; +} +__END_DECLS + +#elif defined(__arm__) + +#if defined(__thumb__) && !defined(_ARM_ARCH_T2) +#include +#endif + +__BEGIN_DECLS +static __inline void * +__lwp_getprivate_fast(void) +{ +#if !defined(__thumb__) || defined(_ARM_ARCH_T2) + void *rv; + __asm("mrc p15, 0, %0, c13, c0, 3" : "=r"(rv)); + if (__predict_true(rv)) + return rv; + /* + * Some ARM cores are broken and don't raise an undefined fault when an + * unrecogized mrc instruction is encountered, but just return zero. + * To do deal with that, if we get a zero we (re-)fetch the value using + * syscall. + */ + return _lwp_getprivate(); +#else + return __aeabi_read_tp(); +#endif /* !__thumb__ || _ARM_ARCH_T2 */ +} +__END_DECLS +#endif + +#endif /* !_ARM_LWP_PRIVATE_H_ */ Index: sys/arch/arm/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/arm/include/mcontext.h,v retrieving revision 1.26 diff -u -u -r1.26 mcontext.h --- sys/arch/arm/include/mcontext.h 4 Nov 2024 15:45:23 -0000 1.26 +++ sys/arch/arm/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.26 2024/11/04 15:45:23 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.25 2024/11/03 22:24:21 christos Exp $ */ /*- * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. @@ -210,52 +210,6 @@ #endif -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) - -#include - -#if defined(__aarch64__) - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - void *__tpidr; - __asm __volatile("mrs\t%0, tpidr_el0" : "=r"(__tpidr)); - return __tpidr; -} -__END_DECLS - -#elif defined(__arm__) - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ -#if !defined(__thumb__) || defined(_ARM_ARCH_T2) - extern void *_lwp_getprivate(void); - void *rv; - __asm("mrc p15, 0, %0, c13, c0, 3" : "=r"(rv)); - if (__predict_true(rv)) - return rv; - /* - * Some ARM cores are broken and don't raise an undefined fault when an - * unrecogized mrc instruction is encountered, but just return zero. - * To do deal with that, if we get a zero we (re-)fetch the value using - * syscall. - */ - return _lwp_getprivate(); -#else - extern void *__aeabi_read_tp(void); - return __aeabi_read_tp(); -#endif /* !__thumb__ || _ARM_ARCH_T2 */ -} -__END_DECLS -#endif - -#endif /* _RTLD_SOURCE || _LIBC_SOURCE || __LIBPTHREAD_SOURCE__ */ - /* Machine-dependent uc_flags */ #define _UC_TLSBASE _UC_MD_BIT19 /* see */ Index: sys/arch/atari/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/atari/include/Makefile,v retrieving revision 1.27 diff -u -u -r1.27 Makefile --- sys/arch/atari/include/Makefile 12 Jul 2018 10:46:42 -0000 1.27 +++ sys/arch/atari/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ intr.h ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h msioctl.h mtpr.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/atari/include/lwp_private.h =================================================================== RCS file: sys/arch/atari/include/lwp_private.h diff -N sys/arch/atari/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/atari/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/bebox/include/lwp_private.h =================================================================== RCS file: sys/arch/bebox/include/lwp_private.h diff -N sys/arch/bebox/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/bebox/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/cats/include/lwp_private.h =================================================================== RCS file: sys/arch/cats/include/lwp_private.h diff -N sys/arch/cats/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/cats/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/cesfic/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/cesfic/include/Makefile,v retrieving revision 1.12 diff -u -u -r1.12 Makefile --- sys/arch/cesfic/include/Makefile 12 Jul 2018 10:46:42 -0000 1.12 +++ sys/arch/cesfic/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h setjmp.h signal.h trap.h types.h \ Index: sys/arch/cesfic/include/lwp_private.h =================================================================== RCS file: sys/arch/cesfic/include/lwp_private.h diff -N sys/arch/cesfic/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/cesfic/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/cobalt/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/cobalt/include/Makefile,v retrieving revision 1.24 diff -u -u -r1.24 Makefile --- sys/arch/cobalt/include/Makefile 12 Jul 2018 10:46:42 -0000 1.24 +++ sys/arch/cobalt/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ nvram.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/cobalt/include/lwp_private.h =================================================================== RCS file: sys/arch/cobalt/include/lwp_private.h diff -N sys/arch/cobalt/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/cobalt/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/dreamcast/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/dreamcast/include/Makefile,v retrieving revision 1.20 diff -u -u -r1.20 Makefile --- sys/arch/dreamcast/include/Makefile 12 Jul 2018 10:46:43 -0000 1.20 +++ sys/arch/dreamcast/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/dreamcast/include/lwp_private.h =================================================================== RCS file: sys/arch/dreamcast/include/lwp_private.h diff -N sys/arch/dreamcast/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/dreamcast/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/emips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/emips/include/Makefile,v retrieving revision 1.6 diff -u -u -r1.6 Makefile --- sys/arch/emips/include/Makefile 12 Jul 2018 10:46:43 -0000 1.6 +++ sys/arch/emips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/emips/include/lwp_private.h =================================================================== RCS file: sys/arch/emips/include/lwp_private.h diff -N sys/arch/emips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/emips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/epoc32/include/lwp_private.h =================================================================== RCS file: sys/arch/epoc32/include/lwp_private.h diff -N sys/arch/epoc32/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/epoc32/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/evbarm/include/lwp_private.h =================================================================== RCS file: sys/arch/evbarm/include/lwp_private.h diff -N sys/arch/evbarm/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/evbarm/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/evbcf/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/evbcf/include/Makefile,v retrieving revision 1.4 diff -u -u -r1.4 Makefile --- sys/arch/evbcf/include/Makefile 12 Jul 2018 10:46:43 -0000 1.4 +++ sys/arch/evbcf/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/evbcf/include/lwp_private.h =================================================================== RCS file: sys/arch/evbcf/include/lwp_private.h diff -N sys/arch/evbcf/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/evbcf/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/evbmips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/evbmips/include/Makefile,v retrieving revision 1.18 diff -u -u -r1.18 Makefile --- sys/arch/evbmips/include/Makefile 12 Jul 2018 10:46:43 -0000 1.18 +++ sys/arch/evbmips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h \ pmap.h proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/evbmips/include/lwp_private.h =================================================================== RCS file: sys/arch/evbmips/include/lwp_private.h diff -N sys/arch/evbmips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/evbmips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/evbppc/include/lwp_private.h =================================================================== RCS file: sys/arch/evbppc/include/lwp_private.h diff -N sys/arch/evbppc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/evbppc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/evbsh3/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/evbsh3/include/Makefile,v retrieving revision 1.28 diff -u -u -r1.28 Makefile --- sys/arch/evbsh3/include/Makefile 12 Jul 2018 10:46:43 -0000 1.28 +++ sys/arch/evbsh3/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/evbsh3/include/lwp_private.h =================================================================== RCS file: sys/arch/evbsh3/include/lwp_private.h diff -N sys/arch/evbsh3/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/evbsh3/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/ews4800mips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/ews4800mips/include/Makefile,v retrieving revision 1.9 diff -u -u -r1.9 Makefile --- sys/arch/ews4800mips/include/Makefile 12 Jul 2018 10:46:43 -0000 1.9 +++ sys/arch/ews4800mips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pdinfo.h pmap.h proc.h profile.h psl.h pte.h \ ptrace.h \ Index: sys/arch/ews4800mips/include/lwp_private.h =================================================================== RCS file: sys/arch/ews4800mips/include/lwp_private.h diff -N sys/arch/ews4800mips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/ews4800mips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/hp300/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/hp300/include/Makefile,v retrieving revision 1.28 diff -u -u -r1.28 Makefile --- sys/arch/hp300/include/Makefile 12 Jul 2018 10:46:44 -0000 1.28 +++ sys/arch/hp300/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/hp300/include/lwp_private.h =================================================================== RCS file: sys/arch/hp300/include/lwp_private.h diff -N sys/arch/hp300/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/hp300/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/hpcarm/include/lwp_private.h =================================================================== RCS file: sys/arch/hpcarm/include/lwp_private.h diff -N sys/arch/hpcarm/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/hpcarm/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/hpcmips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/hpcmips/include/Makefile,v retrieving revision 1.26 diff -u -u -r1.26 Makefile --- sys/arch/hpcmips/include/Makefile 12 Jul 2018 10:46:44 -0000 1.26 +++ sys/arch/hpcmips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kdbparam.h kcore.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h regdef.h regnum.h reloc.h rwlock.h \ Index: sys/arch/hpcmips/include/lwp_private.h =================================================================== RCS file: sys/arch/hpcmips/include/lwp_private.h diff -N sys/arch/hpcmips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/hpcmips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/hpcsh/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/hpcsh/include/Makefile,v retrieving revision 1.21 diff -u -u -r1.21 Makefile --- sys/arch/hpcsh/include/Makefile 12 Jul 2018 10:46:44 -0000 1.21 +++ sys/arch/hpcsh/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/hpcsh/include/lwp_private.h =================================================================== RCS file: sys/arch/hpcsh/include/lwp_private.h diff -N sys/arch/hpcsh/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/hpcsh/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/hppa/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/hppa/include/Makefile,v retrieving revision 1.15 diff -u -u -r1.15 Makefile --- sys/arch/hppa/include/Makefile 4 Nov 2024 15:45:23 -0000 1.15 +++ sys/arch/hppa/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2024/11/04 15:45:23 christos Exp $ +# $NetBSD: Makefile,v 1.14 2024/11/03 22:24:21 christos Exp $ INCSDIR= /usr/include/hppa @@ -11,7 +11,7 @@ ieee.h ieeefp.h intr.h intrdefs.h iomod.h isa_machdep.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h \ - limits.h loadfile_machdep.h lock.h \ + limits.h loadfile_machdep.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ nvm.h \ param.h pcb.h pdc.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/hppa/include/lwp_private.h =================================================================== RCS file: sys/arch/hppa/include/lwp_private.h diff -N sys/arch/hppa/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/hppa/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,21 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:21 christos Exp $ */ + +#ifndef _HPPA_LWP_PRIVATE_H_ +#define _HPPA_LWP_PRIVATE_H_ + +#include +#include + +__BEGIN_DECLS +static __inline void * +__lwp_getprivate_fast(void) +{ + register void *__tmp; + + __asm volatile("mfctl\t27 /* CR_TLS */, %0" : "=r" (__tmp)); + + return __tmp; +} +__END_DECLS + +#endif /* _HPPA_LWP_PRIVATE_H_ */ Index: sys/arch/hppa/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/hppa/include/mcontext.h,v retrieving revision 1.15 diff -u -u -r1.15 mcontext.h --- sys/arch/hppa/include/mcontext.h 4 Nov 2024 15:45:23 -0000 1.15 +++ sys/arch/hppa/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.15 2024/11/04 15:45:23 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.14 2024/11/03 22:24:21 christos Exp $ */ #ifndef _HPPA_MCONTEXT_H_ #define _HPPA_MCONTEXT_H_ @@ -91,24 +91,6 @@ } while (/*CONSTCOND*/0) #define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.__gregs[_REG_RET0]) -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - register void *__tmp; - - __asm volatile("mfctl\t27 /* CR_TLS */, %0" : "=r" (__tmp)); - - return __tmp; -} -__END_DECLS - -#endif - #endif /* !__ASSEMBLER__ */ #define _UC_SETSTACK _UC_MD_BIT16 Index: sys/arch/i386/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/i386/include/Makefile,v retrieving revision 1.52 diff -u -u -r1.52 Makefile --- sys/arch/i386/include/Makefile 4 Nov 2024 15:45:24 -0000 1.52 +++ sys/arch/i386/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.52 2024/11/04 15:45:24 christos Exp $ +# $NetBSD: Makefile,v 1.51 2024/11/03 22:24:21 christos Exp $ INCSDIR= /usr/include/i386 @@ -14,7 +14,7 @@ intr.h intrdefs.h \ joystick.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h mtrr.h multiboot.h multiboot2.h \ param.h pcb.h pio.h pmap.h proc.h profile.h psl.h \ pte.h ptrace.h \ Index: sys/arch/i386/include/lwp_private.h =================================================================== RCS file: sys/arch/i386/include/lwp_private.h diff -N sys/arch/i386/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/i386/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:21 christos Exp $ */ + +#include Index: sys/arch/i386/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/i386/include/mcontext.h,v retrieving revision 1.18 diff -u -u -r1.18 mcontext.h --- sys/arch/i386/include/mcontext.h 4 Nov 2024 15:45:24 -0000 1.18 +++ sys/arch/i386/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.18 2024/11/04 15:45:24 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.17 2024/11/03 22:24:21 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -113,22 +113,4 @@ #define __UCONTEXT_SIZE 776 -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - void *__tmp; - - __asm volatile("movl %%gs:0, %0" : "=r" (__tmp)); - - return __tmp; -} -__END_DECLS - -#endif - #endif /* !_I386_MCONTEXT_H_ */ Index: sys/arch/ia64/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/ia64/include/Makefile,v retrieving revision 1.10 diff -u -u -r1.10 Makefile --- sys/arch/ia64/include/Makefile 4 Nov 2024 15:45:24 -0000 1.10 +++ sys/arch/ia64/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2024/11/04 15:45:24 christos Exp $ +# $NetBSD: Makefile,v 1.9 2024/11/03 22:24:22 christos Exp $ INCSDIR= /usr/include/ia64 @@ -8,9 +8,9 @@ endian.h endian_machdep.h fenv.h float.h fpu.h frame.h \ ia64_cpu.h ieee.h ieeefp.h int_const.h int_fmtio.h int_limits.h \ int_mwgwtypes.h int_types.h intr.h limits.h \ - loadfile_machdep.h lock.h math.h mca_machdep.h mcontext.h md_var.h \ - mutex.h pal.h param.h pcb.h pmap.h proc.h profile.h pte.h ptrace.h \ - reg.h sal.h rwlock.h setjmp.h signal.h smp.h ssc.h types.h \ + loadfile_machdep.h lock.h lwp_private.h math.h mca_machdep.h mcontext.h \ + md_var.h mutex.h pal.h param.h pcb.h pmap.h proc.h profile.h pte.h \ + ptrace.h reg.h sal.h rwlock.h setjmp.h signal.h smp.h ssc.h types.h \ vmparam.h wchar_limits.h .include Index: sys/arch/ia64/include/lwp_private.h =================================================================== RCS file: sys/arch/ia64/include/lwp_private.h diff -N sys/arch/ia64/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/ia64/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,52 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:22 christos Exp $ */ + +/*- + * Copyright (c) 1999 The NetBSD Foundation, Inc. + * All rights reserved. + * + * Copyright (c) 1999, 2003 Marcel Moolenaar + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _IA64_LWP_PRIVATE_H_ +#define _IA64_LWP_PRIVATE_H_ + +#include +#include + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + return (void*)0; +} + +__END_DECLS + +#endif /* !_IA64_LWP_PRIVATE_H_ */ Index: sys/arch/ia64/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/ia64/include/mcontext.h,v retrieving revision 1.15 diff -u -u -r1.15 mcontext.h --- sys/arch/ia64/include/mcontext.h 4 Nov 2024 15:45:24 -0000 1.15 +++ sys/arch/ia64/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.15 2024/11/04 15:45:24 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.14 2024/11/03 22:24:22 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -121,19 +121,4 @@ #define _UC_SETSTACK _UC_MD_BIT17 #define _UC_CLRSTACK _UC_MD_BIT18 - -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - return (void*)0; -} -__END_DECLS - -#endif - #endif /* !_IA64_MCONTEXT_H_ */ Index: sys/arch/ibmnws/include/lwp_private.h =================================================================== RCS file: sys/arch/ibmnws/include/lwp_private.h diff -N sys/arch/ibmnws/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/ibmnws/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/iyonix/include/lwp_private.h =================================================================== RCS file: sys/arch/iyonix/include/lwp_private.h diff -N sys/arch/iyonix/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/iyonix/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/landisk/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/landisk/include/Makefile,v retrieving revision 1.6 diff -u -u -r1.6 Makefile --- sys/arch/landisk/include/Makefile 12 Jul 2018 10:46:44 -0000 1.6 +++ sys/arch/landisk/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ - limits.h lock.h loadfile_machdep.h \ + limits.h lock.h loadfile_machdep.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/landisk/include/lwp_private.h =================================================================== RCS file: sys/arch/landisk/include/lwp_private.h diff -N sys/arch/landisk/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/landisk/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/luna68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/luna68k/include/Makefile,v retrieving revision 1.21 diff -u -u -r1.21 Makefile --- sys/arch/luna68k/include/Makefile 12 Jul 2018 10:46:45 -0000 1.21 +++ sys/arch/luna68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - lcd.h limits.h lock.h \ + lcd.h limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h reg.h \ rwlock.h setjmp.h signal.h \ Index: sys/arch/luna68k/include/lwp_private.h =================================================================== RCS file: sys/arch/luna68k/include/lwp_private.h diff -N sys/arch/luna68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/luna68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/m68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/m68k/include/Makefile,v retrieving revision 1.37 diff -u -u -r1.37 Makefile --- sys/arch/m68k/include/Makefile 4 Nov 2024 15:45:24 -0000 1.37 +++ sys/arch/m68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2024/11/04 15:45:24 christos Exp $ +# $NetBSD: Makefile,v 1.36 2024/11/03 22:24:22 christos Exp $ INCSDIR= /usr/include/m68k @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ m68k.h math.h mcontext.h mmu_30.h mmu_40.h mmu_51.h mutex.h \ param.h pmap_motorola.h pcb.h proc.h profile.h \ psl.h pte_motorola.h ptrace.h \ Index: sys/arch/m68k/include/lwp_private.h =================================================================== RCS file: sys/arch/m68k/include/lwp_private.h diff -N sys/arch/m68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/m68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,64 @@ +/* $NetBSD: lwp_private.h,v 1.2 2024/11/03 22:24:22 christos Exp $ */ + +/*- + * Copyright (c) 2001 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _M68K_LWP_PRIVATE_H_ +#define _M68K_LWP_PRIVATE_H_ + +#include +#include + +#include + +__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); +__CTASSERT(TLS_TP_OFFSET % sizeof(struct tls_tcb) == 0); + +#define TLS_TP_OFFSET 0x7000 +#define TLS_DTV_OFFSET 0x8000 + +__BEGIN_DECLS + +static __inline struct tls_tcb * +__lwp_gettcb_fast(void) +{ + unsigned int __tcb = (unsigned int)_lwp_getprivate(); + return (struct tls_tcb *)(uintptr_t) + (__tcb - TLS_TP_OFFSET - sizeof(struct tls_tcb)); +} + +static inline void +__lwp_settcb(struct tls_tcb *__tcb) +{ + __tcb += TLS_TP_OFFSET / sizeof(*__tcb) + 1; + _lwp_setprivate(__tcb); +} +__END_DECLS + +#endif /* !_M68K_LWP_PRIVATE_H_ */ Index: sys/arch/m68k/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/m68k/include/mcontext.h,v retrieving revision 1.15 diff -u -u -r1.15 mcontext.h --- sys/arch/m68k/include/mcontext.h 4 Nov 2024 15:45:24 -0000 1.15 +++ sys/arch/m68k/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.15 2024/11/04 15:45:24 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.14 2024/11/03 22:24:22 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -110,35 +110,4 @@ #define __UCONTEXT_SIZE 1024 -#if defined(_LIBC_SOURCE) || defined(_RTLD_SOURCE) || defined(__LIBPTHREAD_SOURCE__) -#define TLS_TP_OFFSET 0x7000 -#define TLS_DTV_OFFSET 0x8000 - -#include - -__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); -__CTASSERT(TLS_TP_OFFSET % sizeof(struct tls_tcb) == 0); - -__BEGIN_DECLS - -void *_lwp_getprivate(void); -void _lwp_setprivate(void *); - -static __inline struct tls_tcb * -__lwp_gettcb_fast(void) -{ - unsigned int __tcb = (unsigned int)_lwp_getprivate(); - return (struct tls_tcb *)(uintptr_t) - (__tcb - TLS_TP_OFFSET - sizeof(struct tls_tcb)); -} - -static inline void -__lwp_settcb(struct tls_tcb *__tcb) -{ - __tcb += TLS_TP_OFFSET / sizeof(*__tcb) + 1; - _lwp_setprivate(__tcb); -} -__END_DECLS -#endif - #endif /* !_M68K_MCONTEXT_H_ */ Index: sys/arch/mac68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/mac68k/include/Makefile,v retrieving revision 1.25 diff -u -u -r1.25 Makefile --- sys/arch/mac68k/include/Makefile 12 Jul 2018 10:46:45 -0000 1.25 +++ sys/arch/mac68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -13,7 +13,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h iteioctl.h \ kcore.h keyboard.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pio.h pmap.h proc.h profile.h psc.h psl.h \ pte.h ptrace.h \ Index: sys/arch/mac68k/include/lwp_private.h =================================================================== RCS file: sys/arch/mac68k/include/lwp_private.h diff -N sys/arch/mac68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/mac68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/macppc/include/lwp_private.h =================================================================== RCS file: sys/arch/macppc/include/lwp_private.h diff -N sys/arch/macppc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/macppc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/mips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/mips/include/Makefile,v retrieving revision 1.37 diff -u -u -r1.37 Makefile --- sys/arch/mips/include/Makefile 4 Nov 2024 15:45:24 -0000 1.37 +++ sys/arch/mips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2024/11/04 15:45:24 christos Exp $ +# $NetBSD: Makefile,v 1.36 2024/11/03 22:24:22 christos Exp $ INCSDIR= /usr/include/mips @@ -10,7 +10,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h mcontext.h math.h \ + limits.h lock.h locore.h lwp_private.h mcontext.h math.h \ mips1_pte.h mips3_pte.h mips_opcode.h mips_param.h mutex.h \ pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h regdef.h regnum.h reloc.h rwlock.h \ Index: sys/arch/mips/include/lwp_private.h =================================================================== RCS file: sys/arch/mips/include/lwp_private.h diff -N sys/arch/mips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/mips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,87 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:22 christos Exp $ */ + +/*- + * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein, and by Jason R. Thorpe of Wasabi Systems, Inc. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _MIPS_LWP_PRIVATE_H_ +#define _MIPS_LWP_PRIVATE_H_ + +#include +#include +#include + +#define TLS_TP_OFFSET 0x7000 +#define TLS_DTV_OFFSET 0x8000 + +__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); +__CTASSERT(TLS_TP_OFFSET % sizeof(struct tls_tcb) == 0); + +__BEGIN_DECLS + +static __inline struct tls_tcb * +__lwp_gettcb_fast(void) +{ + struct tls_tcb *__tcb; + + /* + * Only emit a rdhwr $3, $29 so the kernel can quickly emulate it. + */ + __asm __volatile( +#if 1 + // For some reason the syscall is much faster than + // emulating rdhwr $3,$29 on a CN50xx + "addiu $2,$0,316; syscall; nop; move %[__tcb],$2" +#else + ".set push" + ";.set mips32r2" + ";.p2align 4" + ";ssnop" + ";rdhwr $3,$29" + ";ssnop" + ";move %0,$3" + ";.set pop" +#endif + : [__tcb]"=r"(__tcb) + : + : "v0", "v1", "a3"); + return __tcb - (TLS_TP_OFFSET / sizeof(*__tcb) + 1); +} + +void _lwp_setprivate(void *); + +static inline void +__lwp_settcb(struct tls_tcb *__tcb) +{ + __tcb += TLS_TP_OFFSET / sizeof(*__tcb) + 1; + _lwp_setprivate(__tcb); +} + +__END_DECLS + +#endif /* _MIPS_LWP_PRIVATE_H_ */ Index: sys/arch/mips/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/mips/include/mcontext.h,v retrieving revision 1.26 diff -u -u -r1.26 mcontext.h --- sys/arch/mips/include/mcontext.h 4 Nov 2024 15:45:24 -0000 1.26 +++ sys/arch/mips/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.26 2024/11/04 15:45:24 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.25 2024/11/03 22:24:22 christos Exp $ */ /*- * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc. @@ -187,55 +187,4 @@ #error O64 is not supported #endif -#if defined(_LIBC_SOURCE) || defined(_RTLD_SOURCE) || defined(__LIBPTHREAD_SOURCE__) -#define TLS_TP_OFFSET 0x7000 -#define TLS_DTV_OFFSET 0x8000 - -#include - -__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); -__CTASSERT(TLS_TP_OFFSET % sizeof(struct tls_tcb) == 0); - -__BEGIN_DECLS - -static __inline struct tls_tcb * -__lwp_gettcb_fast(void) -{ - struct tls_tcb *__tcb; - - /* - * Only emit a rdhwr $3, $29 so the kernel can quickly emulate it. - */ - __asm __volatile( -#if 1 - // For some reason the syscall is much faster than - // emulating rdhwr $3,$29 on a CN50xx - "addiu $2,$0,316; syscall; nop; move %[__tcb],$2" -#else - ".set push" - ";.set mips32r2" - ";.p2align 4" - ";ssnop" - ";rdhwr $3,$29" - ";ssnop" - ";move %0,$3" - ";.set pop" -#endif - : [__tcb]"=r"(__tcb) - : - : "v0", "v1", "a3"); - return __tcb - (TLS_TP_OFFSET / sizeof(*__tcb) + 1); -} - -void _lwp_setprivate(void *); - -static inline void -__lwp_settcb(struct tls_tcb *__tcb) -{ - __tcb += TLS_TP_OFFSET / sizeof(*__tcb) + 1; - _lwp_setprivate(__tcb); -} -__END_DECLS -#endif - #endif /* _MIPS_MCONTEXT_H_ */ Index: sys/arch/mipsco/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/mipsco/include/Makefile,v retrieving revision 1.24 diff -u -u -r1.24 Makefile --- sys/arch/mipsco/include/Makefile 12 Jul 2018 10:46:45 -0000 1.24 +++ sys/arch/mipsco/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ mainboard.h math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h regdef.h regnum.h reloc.h rwlock.h \ Index: sys/arch/mipsco/include/lwp_private.h =================================================================== RCS file: sys/arch/mipsco/include/lwp_private.h diff -N sys/arch/mipsco/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/mipsco/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/mmeye/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/mmeye/include/Makefile,v retrieving revision 1.27 diff -u -u -r1.27 Makefile --- sys/arch/mmeye/include/Makefile 12 Jul 2018 10:46:45 -0000 1.27 +++ sys/arch/mmeye/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mmeye.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/mmeye/include/lwp_private.h =================================================================== RCS file: sys/arch/mmeye/include/lwp_private.h diff -N sys/arch/mmeye/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/mmeye/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/mvme68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/mvme68k/include/Makefile,v retrieving revision 1.27 diff -u -u -r1.27 Makefile --- sys/arch/mvme68k/include/Makefile 12 Jul 2018 10:46:45 -0000 1.27 +++ sys/arch/mvme68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h prom.h psl.h pte.h ptrace.h \ Index: sys/arch/mvme68k/include/lwp_private.h =================================================================== RCS file: sys/arch/mvme68k/include/lwp_private.h diff -N sys/arch/mvme68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/mvme68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/mvmeppc/include/lwp_private.h =================================================================== RCS file: sys/arch/mvmeppc/include/lwp_private.h diff -N sys/arch/mvmeppc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/mvmeppc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/netwinder/include/lwp_private.h =================================================================== RCS file: sys/arch/netwinder/include/lwp_private.h diff -N sys/arch/netwinder/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/netwinder/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/news68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/news68k/include/Makefile,v retrieving revision 1.25 diff -u -u -r1.25 Makefile --- sys/arch/news68k/include/Makefile 12 Jul 2018 10:46:45 -0000 1.25 +++ sys/arch/news68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/news68k/include/lwp_private.h =================================================================== RCS file: sys/arch/news68k/include/lwp_private.h diff -N sys/arch/news68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/news68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/newsmips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/newsmips/include/Makefile,v retrieving revision 1.38 diff -u -u -r1.38 Makefile --- sys/arch/newsmips/include/Makefile 12 Jul 2018 10:46:46 -0000 1.38 +++ sys/arch/newsmips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ machConst.h math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h regdef.h regnum.h reloc.h rwlock.h \ Index: sys/arch/newsmips/include/lwp_private.h =================================================================== RCS file: sys/arch/newsmips/include/lwp_private.h diff -N sys/arch/newsmips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/newsmips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/next68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/next68k/include/Makefile,v retrieving revision 1.23 diff -u -u -r1.23 Makefile --- sys/arch/next68k/include/Makefile 12 Jul 2018 10:46:46 -0000 1.23 +++ sys/arch/next68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h rwlock.h \ Index: sys/arch/next68k/include/lwp_private.h =================================================================== RCS file: sys/arch/next68k/include/lwp_private.h diff -N sys/arch/next68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/next68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/ofppc/include/lwp_private.h =================================================================== RCS file: sys/arch/ofppc/include/lwp_private.h diff -N sys/arch/ofppc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/ofppc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/or1k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/or1k/include/Makefile,v retrieving revision 1.4 diff -u -u -r1.4 Makefile --- sys/arch/or1k/include/Makefile 4 Nov 2024 15:45:24 -0000 1.4 +++ sys/arch/or1k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2024/11/04 15:45:24 christos Exp $ +# $NetBSD: Makefile,v 1.3 2024/11/03 22:24:22 christos Exp $ INCSDIR= /usr/include/or1k @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h pte.h ptrace.h \ Index: sys/arch/or1k/include/lwp_private.h =================================================================== RCS file: sys/arch/or1k/include/lwp_private.h diff -N sys/arch/or1k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/or1k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,81 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:22 christos Exp $ */ + +/*- + * Copyright (c) 2014 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Matt Thomas of 3am Software Foundry. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _OR1K_LWP_PRIVATE_H_ +#define _OR1K_LWP_PRIVATE_H_ + +#include +#include + +/* + * On OpenRISC 1000, since displacements are signed 16-bit values, the TCB + * Pointer is biased by 0x7000 + sizeof(tcb) so that first thread datum can be + * addressed by -28672 thereby leaving 60KB available for use as thread data. + */ +#define TLS_TP_OFFSET 0x7000 +#define TLS_DTV_OFFSET 0x8000 +__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + void *__tp; + __asm("l.ori %0,r10,0" : "=r"(__tp)); + return __tp; +} + +static __inline void * +__lwp_gettcb_fast(void) +{ + void *__tcb; + + __asm __volatile( + "l.addi %[__tcb],r10,%[__offset]" + : [__tcb] "=r" (__tcb) + : [__offset] "n" (-(TLS_TP_OFFSET + sizeof(struct tls_tcb)))); + + return __tcb; +} + +static __inline void +__lwp_settcb(void *__tcb) +{ + __asm __volatile( + "l.addi r10,%[__tcb],%[__offset]" + : + : [__tcb] "r" (__tcb), + [__offset] "n" (TLS_TP_OFFSET + sizeof(struct tls_tcb))); +} + +__END_DECLS + +#endif /* !_OR1K_LWP_PRIVATE_H_ */ Index: sys/arch/or1k/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/or1k/include/mcontext.h,v retrieving revision 1.4 diff -u -u -r1.4 mcontext.h --- sys/arch/or1k/include/mcontext.h 4 Nov 2024 15:45:24 -0000 1.4 +++ sys/arch/or1k/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.4 2024/11/04 15:45:24 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.3 2024/11/03 22:24:22 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -94,48 +94,4 @@ #define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc) -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || defined(__LIBPTHREAD_SOURCE__) -#include - -/* - * On OpenRISC 1000, since displacements are signed 16-bit values, the TCB - * Pointer is biased by 0x7000 + sizeof(tcb) so that first thread datum can be - * addressed by -28672 thereby leaving 60KB available for use as thread data. - */ -#define TLS_TP_OFFSET 0x7000 -#define TLS_DTV_OFFSET 0x8000 -__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); - -static __inline void * -__lwp_getprivate_fast(void) -{ - void *__tp; - __asm("l.ori %0,r10,0" : "=r"(__tp)); - return __tp; -} - -static __inline void * -__lwp_gettcb_fast(void) -{ - void *__tcb; - - __asm __volatile( - "l.addi %[__tcb],r10,%[__offset]" - : [__tcb] "=r" (__tcb) - : [__offset] "n" (-(TLS_TP_OFFSET + sizeof(struct tls_tcb)))); - - return __tcb; -} - -static __inline void -__lwp_settcb(void *__tcb) -{ - __asm __volatile( - "l.addi r10,%[__tcb],%[__offset]" - : - : [__tcb] "r" (__tcb), - [__offset] "n" (TLS_TP_OFFSET + sizeof(struct tls_tcb))); -} -#endif /* _RTLD_SOURCE || _LIBC_SOURCE || __LIBPTHREAD_SOURCE__ */ - #endif /* !_OR1K_MCONTEXT_H_ */ Index: sys/arch/playstation2/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/playstation2/include/Makefile,v retrieving revision 1.13 diff -u -u -r1.13 Makefile --- sys/arch/playstation2/include/Makefile 12 Jul 2018 10:46:46 -0000 1.13 +++ sys/arch/playstation2/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h regdef.h regnum.h reloc.h rwlock.h \ Index: sys/arch/playstation2/include/lwp_private.h =================================================================== RCS file: sys/arch/playstation2/include/lwp_private.h diff -N sys/arch/playstation2/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/playstation2/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/pmax/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/pmax/include/Makefile,v retrieving revision 1.39 diff -u -u -r1.39 Makefile --- sys/arch/pmax/include/Makefile 12 Jul 2018 10:46:46 -0000 1.39 +++ sys/arch/pmax/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/pmax/include/lwp_private.h =================================================================== RCS file: sys/arch/pmax/include/lwp_private.h diff -N sys/arch/pmax/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/pmax/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/powerpc/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/powerpc/include/Makefile,v retrieving revision 1.44 diff -u -u -r1.44 Makefile --- sys/arch/powerpc/include/Makefile 4 Nov 2024 15:45:24 -0000 1.44 +++ sys/arch/powerpc/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.44 2024/11/04 15:45:24 christos Exp $ +# $NetBSD: Makefile,v 1.43 2024/11/03 22:24:22 christos Exp $ .if !defined(INCSDIR) INCSDIR?= /usr/include/powerpc @@ -13,7 +13,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h reloc.h rwlock.h \ Index: sys/arch/powerpc/include/lwp_private.h =================================================================== RCS file: sys/arch/powerpc/include/lwp_private.h diff -N sys/arch/powerpc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/powerpc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,79 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:22 christos Exp $ */ + +/*- + * Copyright (c) 2001 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _POWERPC_LWP_PRIVATE_H_ +#define _POWERPC_LWP_PRIVATE_H_ + +#include +#include + +#include + +/* + * On PowerPC, since displacements are signed 16-bit values, the TCB Pointer + * is biased by 0x7000 + sizeof(tcb) so that first thread datum can be + * addressed by -28672 thereby leaving 60KB available for use as thread data. + */ +#define TLS_TP_OFFSET 0x7000 +#define TLS_DTV_OFFSET 0x8000 +__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); + +__BEGIN_DECLS + +static __inline void * +__lwp_gettcb_fast(void) +{ + void *__tcb; + + __asm __volatile( + "addi %[__tcb],%%r2,%[__offset]" + : [__tcb] "=r" (__tcb) + : [__offset] "n" (-(TLS_TP_OFFSET + sizeof(struct tls_tcb)))); + + return __tcb; +} + +static __inline void +__lwp_settcb(void *__tcb) +{ + __tcb = (uint8_t *)__tcb + TLS_TP_OFFSET + sizeof(struct tls_tcb); + + __asm __volatile( + "mr %%r2,%[__tcb]" + : + : [__tcb] "r" (__tcb)); + + _lwp_setprivate(__tcb); +} + +__END_DECLS + +#endif /* !_POWERPC_LWP_PRIVATE_H_ */ Index: sys/arch/powerpc/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/powerpc/include/mcontext.h,v retrieving revision 1.25 diff -u -u -r1.25 mcontext.h --- sys/arch/powerpc/include/mcontext.h 4 Nov 2024 15:45:24 -0000 1.25 +++ sys/arch/powerpc/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.25 2024/11/04 15:45:24 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.24 2024/11/03 22:24:22 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -141,48 +141,4 @@ #define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc) -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || defined(__LIBPTHREAD_SOURCE__) -#include - -/* - * On PowerPC, since displacements are signed 16-bit values, the TCB Pointer - * is biased by 0x7000 + sizeof(tcb) so that first thread datum can be - * addressed by -28672 thereby leaving 60KB available for use as thread data. - */ -#define TLS_TP_OFFSET 0x7000 -#define TLS_DTV_OFFSET 0x8000 -__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); - -__BEGIN_DECLS - -static __inline void * -__lwp_gettcb_fast(void) -{ - void *__tcb; - - __asm __volatile( - "addi %[__tcb],%%r2,%[__offset]" - : [__tcb] "=r" (__tcb) - : [__offset] "n" (-(TLS_TP_OFFSET + sizeof(struct tls_tcb)))); - - return __tcb; -} - -void _lwp_setprivate(void *); - -static __inline void -__lwp_settcb(void *__tcb) -{ - __tcb = (uint8_t *)__tcb + TLS_TP_OFFSET + sizeof(struct tls_tcb); - - __asm __volatile( - "mr %%r2,%[__tcb]" - : - : [__tcb] "r" (__tcb)); - - _lwp_setprivate(__tcb); -} -__END_DECLS -#endif /* _RTLD_SOURCE || _LIBC_SOURCE || __LIBPTHREAD_SOURCE__ */ - #endif /* !_POWERPC_MCONTEXT_H_ */ Index: sys/arch/prep/include/lwp_private.h =================================================================== RCS file: sys/arch/prep/include/lwp_private.h diff -N sys/arch/prep/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/prep/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/riscv/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/riscv/include/Makefile,v retrieving revision 1.5 diff -u -u -r1.5 Makefile --- sys/arch/riscv/include/Makefile 4 Nov 2024 15:45:25 -0000 1.5 +++ sys/arch/riscv/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2024/11/04 15:45:25 christos Exp $ +# $NetBSD: Makefile,v 1.4 2024/11/03 22:24:22 christos Exp $ INCSDIR= /usr/include/riscv @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h pte.h ptrace.h \ Index: sys/arch/riscv/include/lwp_private.h =================================================================== RCS file: sys/arch/riscv/include/lwp_private.h diff -N sys/arch/riscv/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/riscv/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,83 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:22 christos Exp $ */ + +/*- + * Copyright (c) 2014 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Matt Thomas of 3am Software Foundry. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _RISCV_LWP_PRIVATE_H_ +#define _RISCV_LWP_PRIVATE_H_ + +#include +#include + +/* + * On RISCV, since displacements are signed 12-bit values, the TCB Pointer + * is biased by sizeof(tcb) so that first thread datum can be addressed by + * -sizeof(tcb). + */ + +#define TLS_TP_OFFSET 0x0 +#define TLS_TCB_ALIGN 16 +#define TLS_DTV_OFFSET 0x800 +__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x800); + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + void *__tp; + __asm("mv %0, tp" : "=r"(__tp)); + return __tp; +} + +static __inline void * +__lwp_gettcb_fast(void) +{ + void *__tcb; + + __asm __volatile( + "addi %[__tcb], tp, %[__offset]" + : [__tcb] "=r" (__tcb) + : [__offset] "n" (-(TLS_TP_OFFSET + sizeof(struct tls_tcb)))); + + return __tcb; +} + +static __inline void +__lwp_settcb(void *__tcb) +{ + __asm __volatile( + "addi tp, %[__tcb], %[__offset]" + : + : [__tcb] "r" (__tcb), + [__offset] "n" (TLS_TP_OFFSET + sizeof(struct tls_tcb))); +} + +__END_DECLS + +#endif /* !_RISCV_LWP_PRIVATE_H_ */ Index: sys/arch/riscv/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/riscv/include/mcontext.h,v retrieving revision 1.11 diff -u -u -r1.11 mcontext.h --- sys/arch/riscv/include/mcontext.h 4 Nov 2024 15:45:25 -0000 1.11 +++ sys/arch/riscv/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.11 2024/11/04 15:45:25 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.10 2024/11/03 22:24:22 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -147,51 +147,4 @@ #define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc) -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || defined(__LIBPTHREAD_SOURCE__) -#include - -static __inline void * -__lwp_getprivate_fast(void) -{ - void *__tp; - __asm("mv %0, tp" : "=r"(__tp)); - return __tp; -} - -/* - * On RISCV, since displacements are signed 12-bit values, the TCB Pointer - * is biased by sizeof(tcb) so that first thread datum can be addressed by - * -sizeof(tcb). - */ - -#define TLS_TP_OFFSET 0x0 -#define TLS_TCB_ALIGN 16 -#define TLS_DTV_OFFSET 0x800 -__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x800); - -static __inline void * -__lwp_gettcb_fast(void) -{ - void *__tcb; - - __asm __volatile( - "addi %[__tcb], tp, %[__offset]" - : [__tcb] "=r" (__tcb) - : [__offset] "n" (-(TLS_TP_OFFSET + sizeof(struct tls_tcb)))); - - return __tcb; -} - -static __inline void -__lwp_settcb(void *__tcb) -{ - __asm __volatile( - "addi tp, %[__tcb], %[__offset]" - : - : [__tcb] "r" (__tcb), - [__offset] "n" (TLS_TP_OFFSET + sizeof(struct tls_tcb))); -} - -#endif /* _RTLD_SOURCE || _LIBC_SOURCE || __LIBPTHREAD_SOURCE__ */ - #endif /* !_RISCV_MCONTEXT_H_ */ Index: sys/arch/rs6000/include/lwp_private.h =================================================================== RCS file: sys/arch/rs6000/include/lwp_private.h diff -N sys/arch/rs6000/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/rs6000/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/sandpoint/include/lwp_private.h =================================================================== RCS file: sys/arch/sandpoint/include/lwp_private.h diff -N sys/arch/sandpoint/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sandpoint/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/sbmips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/sbmips/include/Makefile,v retrieving revision 1.17 diff -u -u -r1.17 Makefile --- sys/arch/sbmips/include/Makefile 12 Jul 2018 10:46:47 -0000 1.17 +++ sys/arch/sbmips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -14,7 +14,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ reg.h regdef.h regnum.h reloc.h rwlock.h \ Index: sys/arch/sbmips/include/lwp_private.h =================================================================== RCS file: sys/arch/sbmips/include/lwp_private.h diff -N sys/arch/sbmips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sbmips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/sgimips/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/sgimips/include/Makefile,v retrieving revision 1.25 diff -u -u -r1.25 Makefile --- sys/arch/sgimips/include/Makefile 12 Jul 2018 10:46:47 -0000 1.25 +++ sys/arch/sgimips/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h kdbparam.h \ - limits.h lock.h locore.h \ + limits.h lock.h locore.h lwp_private.h \ math.h mcontext.h mips_opcode.h mutex.h \ param.h pci_machdep.h pcb.h pmap.h proc.h profile.h psl.h pte.h \ ptrace.h \ Index: sys/arch/sgimips/include/lwp_private.h =================================================================== RCS file: sys/arch/sgimips/include/lwp_private.h diff -N sys/arch/sgimips/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sgimips/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/sh3/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/sh3/include/Makefile,v retrieving revision 1.31 diff -u -u -r1.31 Makefile --- sys/arch/sh3/include/Makefile 4 Nov 2024 15:45:25 -0000 1.31 +++ sys/arch/sh3/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2024/11/04 15:45:25 christos Exp $ +# $NetBSD: Makefile,v 1.30 2024/11/03 22:24:23 christos Exp $ INCSDIR= /usr/include/sh3 @@ -11,7 +11,7 @@ ieee.h ieeefp.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h proc.h profile.h psl.h \ pte.h ptrace.h \ Index: sys/arch/sh3/include/lwp_private.h =================================================================== RCS file: sys/arch/sh3/include/lwp_private.h diff -N sys/arch/sh3/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sh3/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,52 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:23 christos Exp $ */ + +/*- + * Copyright (c) 2001 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _SH3_LWP_PRIVATE_H_ +#define _SH3_LWP_PRIVATE_H_ + +#include +#include + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + register void *__gbr; + + __asm volatile("stc gbr, %0" : "=r" (__gbr)); + + return __gbr; +} + +__END_DECLS + +#endif /* !_SH3_LWP_PRIVATE_H_ */ Index: sys/arch/sh3/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/sh3/include/mcontext.h,v retrieving revision 1.15 diff -u -u -r1.15 mcontext.h --- sys/arch/sh3/include/mcontext.h 4 Nov 2024 15:45:25 -0000 1.15 +++ sys/arch/sh3/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.15 2024/11/04 15:45:25 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.14 2024/11/03 22:24:23 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -95,22 +95,4 @@ #define _UC_CLRSTACK _UC_MD_BIT17 #define _UC_TLSBASE _UC_MD_BIT19 -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - register void *__gbr; - - __asm volatile("stc gbr, %0" : "=r" (__gbr)); - - return __gbr; -} -__END_DECLS - -#endif - #endif /* !_SH3_MCONTEXT_H_ */ Index: sys/arch/shark/include/lwp_private.h =================================================================== RCS file: sys/arch/shark/include/lwp_private.h diff -N sys/arch/shark/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/shark/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/sparc/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/sparc/include/Makefile,v retrieving revision 1.38 diff -u -u -r1.38 Makefile --- sys/arch/sparc/include/Makefile 4 Nov 2024 15:45:25 -0000 1.38 +++ sys/arch/sparc/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2024/11/04 15:45:25 christos Exp $ +# $NetBSD: Makefile,v 1.37 2024/11/03 22:24:23 christos Exp $ INCSDIR= /usr/include/sparc @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kbd.h kbio.h kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ oldmon.h openpromio.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/sparc/include/lwp_private.h =================================================================== RCS file: sys/arch/sparc/include/lwp_private.h diff -N sys/arch/sparc/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sparc/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,51 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:23 christos Exp $ */ + +/*- + * Copyright (c) 2001 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _SPARC_LWP_PRIVATE_H_ +#define _SPARC_LWP_PRIVATE_H_ + +#include + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + register void *__tmp; + + __asm volatile("mov %%g7, %0" : "=r" (__tmp)); + + return __tmp; +} + +__END_DECLS + +#endif /* !_SPARC_LWP_PRIVATE_H_ */ Index: sys/arch/sparc/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/sparc/include/mcontext.h,v retrieving revision 1.21 diff -u -u -r1.21 mcontext.h --- sys/arch/sparc/include/mcontext.h 4 Nov 2024 15:45:25 -0000 1.21 +++ sys/arch/sparc/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.21 2024/11/04 15:45:25 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.20 2024/11/03 22:24:23 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -161,22 +161,4 @@ (uc)->uc_mcontext.__gregs[_REG_nPC] = (pc) + 4; \ } while (/*CONSTCOND*/0) -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - register void *__tmp; - - __asm volatile("mov %%g7, %0" : "=r" (__tmp)); - - return __tmp; -} -__END_DECLS - -#endif - #endif /* !_SPARC_MCONTEXT_H_ */ Index: sys/arch/sparc64/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/sparc64/include/Makefile,v retrieving revision 1.33 diff -u -u -r1.33 Makefile --- sys/arch/sparc64/include/Makefile 19 Dec 2018 13:57:50 -0000 1.33 +++ sys/arch/sparc64/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ joystick.h \ kbd.h kbio.h kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ oldmon.h openpromio.h \ param.h pcb.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/sparc64/include/lwp_private.h =================================================================== RCS file: sys/arch/sparc64/include/lwp_private.h diff -N sys/arch/sparc64/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sparc64/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +// not implemented Index: sys/arch/sun2/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/sun2/include/Makefile,v retrieving revision 1.13 diff -u -u -r1.13 Makefile --- sys/arch/sun2/include/Makefile 12 Jul 2018 10:46:47 -0000 1.13 +++ sys/arch/sun2/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -11,7 +11,7 @@ idprom.h ieee.h ieeefp.h intr.h \ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ kbd.h kbio.h kcore.h \ - leds.h limits.h lock.h \ + leds.h limits.h lock.h lwp_private.h \ math.h mcontext.h mon.h mutex.h \ param.h pcb.h pmap.h promlib.h \ proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/sun2/include/lwp_private.h =================================================================== RCS file: sys/arch/sun2/include/lwp_private.h diff -N sys/arch/sun2/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sun2/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/sun3/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/sun3/include/Makefile,v retrieving revision 1.27 diff -u -u -r1.27 Makefile --- sys/arch/sun3/include/Makefile 12 Jul 2018 10:46:47 -0000 1.27 +++ sys/arch/sun3/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kbd.h kbio.h kcore.h \ - leds.h limits.h lock.h \ + leds.h limits.h lock.h lwp_private.h \ math.h mc68851.h mcontext.h mon.h mutex.h \ param.h param3.h param3x.h pcb.h pmap.h pmap3.h pmap3x.h \ proc.h profile.h psl.h pte.h pte3.h pte3x.h ptrace.h \ Index: sys/arch/sun3/include/lwp_private.h =================================================================== RCS file: sys/arch/sun3/include/lwp_private.h diff -N sys/arch/sun3/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/sun3/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/usermode/include/lwp_private.h =================================================================== RCS file: sys/arch/usermode/include/lwp_private.h diff -N sys/arch/usermode/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/usermode/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +// not implemented Index: sys/arch/vax/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/vax/include/Makefile,v retrieving revision 1.32 diff -u -u -r1.32 Makefile --- sys/arch/vax/include/Makefile 4 Nov 2024 15:45:25 -0000 1.32 +++ sys/arch/vax/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2024/11/04 15:45:25 christos Exp $ +# $NetBSD: Makefile,v 1.31 2024/11/03 22:24:23 christos Exp $ INCSDIR= /usr/include/vax @@ -11,7 +11,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ ioa.h \ ka410.h ka420.h ka43.h ka630.h ka650.h ka750.h ka820.h \ - leds.h lcgreg.h limits.h lock.h \ + leds.h lcgreg.h limits.h lock.h lwp_private.h \ macros.h math.h mcontext.h mtpr.h mutex.h \ nexus.h param.h pcb.h pmap.h \ proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/vax/include/lwp_private.h =================================================================== RCS file: sys/arch/vax/include/lwp_private.h diff -N sys/arch/vax/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/vax/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,51 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:23 christos Exp $ */ + +/*- + * Copyright (c) 2001 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _VAX_LWP_PRIVATE_H_ +#define _VAX_LWP_PRIVATE_H_ + +#include +#include +#include + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + register void *tcb __asm("r0"); + __asm("chmk %0" :: "i"(SYS__lwp_getprivate) : "r0"); + return tcb; +} + +__END_DECLS + +#endif /* !_VAX_LWP_PRIVATE_H_ */ Index: sys/arch/vax/include/mcontext.h =================================================================== RCS file: /cvsroot/src/sys/arch/vax/include/mcontext.h,v retrieving revision 1.14 diff -u -u -r1.14 mcontext.h --- sys/arch/vax/include/mcontext.h 4 Nov 2024 15:45:25 -0000 1.14 +++ sys/arch/vax/include/mcontext.h 27 Nov 2024 17:48:13 -0000 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.14 2024/11/04 15:45:25 christos Exp $ */ +/* $NetBSD: mcontext.h,v 1.13 2024/11/03 22:24:23 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -76,21 +76,4 @@ #define _UC_MACHINE_SET_PC(uc, pc) _UC_MACHINE_PC(uc) = (pc) -#if defined(_RTLD_SOURCE) || defined(_LIBC_SOURCE) || \ - defined(__LIBPTHREAD_SOURCE__) -#include -#include - -__BEGIN_DECLS -static __inline void * -__lwp_getprivate_fast(void) -{ - register void *tcb __asm("r0"); - __asm("chmk %0" :: "i"(SYS__lwp_getprivate) : "r0"); - return tcb; -} -__END_DECLS - -#endif - #endif /* !_VAX_MCONTEXT_H_ */ Index: sys/arch/virt68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/virt68k/include/Makefile,v retrieving revision 1.1 diff -u -u -r1.1 Makefile --- sys/arch/virt68k/include/Makefile 2 Jan 2024 07:40:59 -0000 1.1 +++ sys/arch/virt68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -12,7 +12,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ intr.h \ kcore.h \ - limits.h lock.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ param.h pcb.h pmap.h \ proc.h profile.h psl.h pte.h ptrace.h \ Index: sys/arch/virt68k/include/lwp_private.h =================================================================== RCS file: sys/arch/virt68k/include/lwp_private.h diff -N sys/arch/virt68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/virt68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/x68k/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/x68k/include/Makefile,v retrieving revision 1.38 diff -u -u -r1.38 Makefile --- sys/arch/x68k/include/Makefile 12 Jul 2018 10:46:47 -0000 1.38 +++ sys/arch/x68k/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -13,7 +13,7 @@ int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \ iteioctl.h \ kbd.h kbdmap.h kbio.h kcore.h \ - lock.h limits.h \ + limits.h lock.h lwp_private.h \ math.h mcontext.h mutex.h \ opmbellio.h opmreg.h \ param.h parioctl.h pcb.h pmap.h proc.h \ Index: sys/arch/x68k/include/lwp_private.h =================================================================== RCS file: sys/arch/x68k/include/lwp_private.h diff -N sys/arch/x68k/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/x68k/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/arch/x86/include/Makefile =================================================================== RCS file: /cvsroot/src/sys/arch/x86/include/Makefile,v retrieving revision 1.25 diff -u -u -r1.25 Makefile --- sys/arch/x86/include/Makefile 30 Apr 2021 13:54:26 -0000 1.25 +++ sys/arch/x86/include/Makefile 27 Nov 2024 17:48:13 -0000 @@ -16,7 +16,7 @@ gdt.h \ ieee.h ieeefp.h \ intr.h intrdefs.h \ - lock.h \ + lock.h lwp_private.h \ math.h mutex.h mtrr.h \ pio.h \ pmap.h \ Index: sys/arch/x86/include/lwp_private.h =================================================================== RCS file: sys/arch/x86/include/lwp_private.h diff -N sys/arch/x86/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/x86/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,56 @@ +/* $NetBSD: lwp_private.h,v 1.1 2024/11/03 22:24:21 christos Exp $ */ + +/*- + * Copyright (c) 1999 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Klaus Klein. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _X86_LWP_PRIVATE_H_ +#define _X86_LWP_PRIVATE_H_ + +#include +#include + +__BEGIN_DECLS + +static __inline void * +__lwp_getprivate_fast(void) +{ + void *__tmp; + +#ifdef _LP64 + __asm volatile("movq %%fs:0, %0" : "=r" (__tmp)); +#else + __asm volatile("movl %%gs:0, %0" : "=r" (__tmp)); +#endif + + return __tmp; +} + +__END_DECLS + +#endif /* !_X86_LWP_PRIVATE_H_ */ Index: sys/arch/zaurus/include/lwp_private.h =================================================================== RCS file: sys/arch/zaurus/include/lwp_private.h diff -N sys/arch/zaurus/include/lwp_private.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sys/arch/zaurus/include/lwp_private.h 27 Nov 2024 17:48:13 -0000 @@ -0,0 +1,3 @@ +/* $NetBSD$ */ + +#include Index: sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc =================================================================== RCS file: /cvsroot/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc,v retrieving revision 1.2 diff -u -u -r1.2 sanitizer_linux_libcdep.cc --- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc 27 Dec 2019 00:35:05 -0000 1.2 +++ sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux_libcdep.cc 27 Nov 2024 17:48:13 -0000 @@ -54,6 +54,7 @@ #if SANITIZER_NETBSD #include #include +#include #endif #if SANITIZER_SOLARIS