Module Name: src Committed By: bouyer Date: Sun Jan 16 12:58:24 UTC 2011
Modified Files: src/sys/arch/sparc/sparc [netbsd-5]: cpu.c cpuvar.h db_interface.c locore.s pmap.c Log Message: Pull up following revision(s) (requested by mrg in ticket #1527): sys/arch/sparc/sparc/pmap.c: revision 1.327, 1.328 sys/arch/sparc/sparc/cpuvar.h: revision 1.77 sys/arch/sparc/sparc/locore.s: revision 1.245 sys/arch/sparc/sparc/cpu.c: revision 1.214 sys/arch/sparc/sparc/db_interface.c: revision 1.84 - retire union cpu_info_pg - allocate space for each cpu_info{} in pmap_bootstrap - remap cpu0's space into the PA currently in CPUINFO_VA - cpus[] becomes an array of pointers to cpu_info{}, easy to traverse - only call kernel lock for IPL_VM interrupts (? as implemented on x86 and sparc64) - revert a minor part of locore.s:1.241 - in cpu_hatch(), set %sp to near the middle of the interrupt stack. we only need a %sp until we get to run an MI thread (own idlelwp or real code) we still waste one page of space, but this gets SMP much closer to actually working again. fix a LOCKDEBUG problem from the previous: need to call pmap_kremove() on a pre-existing mapping, before installing a new one. To generate a diff of this commit: cvs rdiff -u -r1.211.8.1 -r1.211.8.2 src/sys/arch/sparc/sparc/cpu.c cvs rdiff -u -r1.75.10.1 -r1.75.10.2 src/sys/arch/sparc/sparc/cpuvar.h cvs rdiff -u -r1.79.4.1 -r1.79.4.2 src/sys/arch/sparc/sparc/db_interface.c cvs rdiff -u -r1.244.8.1 -r1.244.8.2 src/sys/arch/sparc/sparc/locore.s cvs rdiff -u -r1.322.20.2 -r1.322.20.3 src/sys/arch/sparc/sparc/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.