}
cpuid = simple_strtoul(argv[1], NULL, 10);
- if (cpuid >= CONFIG_NR_CPUS) {
- printf ("Core num: %d is out of range[0..%d]\n",
- cpuid, CONFIG_NR_CPUS - 1);
+ if (cpuid >= CONFIG_NUM_CPUS) {
+ printf ("Core num: %lu is out of range[0..%d]\n",
+ cpuid, CONFIG_NUM_CPUS - 1);
return 1;
}
#endif
U_BOOT_CMD(
- cpu, CFG_MAXARGS, 1, cpu_cmd,
+ cpu, CONFIG_SYS_MAXARGS, 1, cpu_cmd,
"cpu - Multiprocessor CPU boot manipulation and release\n",
"<num> reset - Reset cpu <num>\n"
"cpu <num> status - Status of cpu <num>\n"