Module Name: src Committed By: snj Date: Mon Feb 26 00:19:44 UTC 2018
Modified Files: src/sys/arch/arm/include [netbsd-8]: cpu.h src/sys/arch/mips/include [netbsd-8]: cpu.h src/sys/arch/powerpc/include [netbsd-8]: cpu.h src/sys/sys [netbsd-8]: cpu.h Log Message: Pull up following revision(s) (requested by skrll in ticket #566): sys/arch/arm/include/cpu.h: 1.94 sys/arch/mips/include/cpu.h: 1.122 sys/arch/powerpc/include/cpu.h: 1.103 sys/sys/cpu.h: 1.42 CPU_INFO_FOREACH() must always iterate at least the boot cpu. document this in sys/cpu.h and fix the arm and mips versions to check ncpu is non zero before using it as an iterator max. this should fix the new assert in init_main.c. -- apply the same change for powerpc as mrg did for arm and mips: CPU_INFO_FOREACH() must always iterate at least the boot cpu. document this in sys/cpu.h and fix the arm and mips versions to check ncpu is non zero before using it as an iterator max. this should fix the new assert in init_main.c. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.93.6.1 src/sys/arch/arm/include/cpu.h cvs rdiff -u -r1.121 -r1.121.8.1 src/sys/arch/mips/include/cpu.h cvs rdiff -u -r1.102 -r1.102.8.1 src/sys/arch/powerpc/include/cpu.h cvs rdiff -u -r1.41 -r1.41.20.1 src/sys/sys/cpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.