Module Name: src Committed By: chs Date: Wed Jul 7 01:14:53 UTC 2010
Modified Files: src/sys/arch/amd64/amd64: cpufunc.S gdt.c genassym.cf locore.S machdep.c netbsd32_machdep.c vector.S src/sys/arch/amd64/include: frameasm.h gdt.h pcb.h segments.h src/sys/arch/x86/include: cpufunc.h sysarch.h src/sys/arch/x86/x86: pmap.c Log Message: add the guts of TLS support on amd64. based on joerg's patch, reworked by me to support 32-bit processes as well. we now keep %fs and %gs loaded with the user values while in the kernel, which means we don't need to reload them when returning to user mode. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/amd64/amd64/cpufunc.S cvs rdiff -u -r1.23 -r1.24 src/sys/arch/amd64/amd64/gdt.c cvs rdiff -u -r1.44 -r1.45 src/sys/arch/amd64/amd64/genassym.cf cvs rdiff -u -r1.57 -r1.58 src/sys/arch/amd64/amd64/locore.S cvs rdiff -u -r1.145 -r1.146 src/sys/arch/amd64/amd64/machdep.c cvs rdiff -u -r1.63 -r1.64 src/sys/arch/amd64/amd64/netbsd32_machdep.c cvs rdiff -u -r1.33 -r1.34 src/sys/arch/amd64/amd64/vector.S cvs rdiff -u -r1.13 -r1.14 src/sys/arch/amd64/include/frameasm.h cvs rdiff -u -r1.6 -r1.7 src/sys/arch/amd64/include/gdt.h cvs rdiff -u -r1.16 -r1.17 src/sys/arch/amd64/include/pcb.h cvs rdiff -u -r1.19 -r1.20 src/sys/arch/amd64/include/segments.h cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/include/cpufunc.h cvs rdiff -u -r1.8 -r1.9 src/sys/arch/x86/include/sysarch.h cvs rdiff -u -r1.110 -r1.111 src/sys/arch/x86/x86/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.