1.跳转到kernel/cpu.c文件中的boot_cpu_init();/** Activate the first processor.*/void__initboot_cpu_init(void){intcpu=smp_processor_id();//获取当前执行cpu_id/* Mark the boot cpu "present", "online" etc for SMP and UP case 对于SMP和UP情况,将引导CPU标记为“存在”、“在线”等*/se...
*/#defineraw_smp_processor_id() (this_cpu_read(cpu_number))externintsafe_smp_processor_id(void);#elifdefined(CONFIG_X86_64_SMP)#defineraw_smp_processor_id() (this_cpu_read(cpu_number)) 32位情况下调用this_cpu_read(cpu_number) 先看一下cpu_number的定义: DEFINE_PER_CPU_READ_MOSTLY(int,...
40structcpu_operations {41constchar*name;42int(*cpu_init)(unsignedint);43int(*cpu_prepare)(unsignedint);44int(*cpu_boot)(unsignedint);45void(*cpu_postboot)(void);46#ifdef CONFIG_HOTPLUG_CPU47bool(*cpu_can_disable)(unsignedintcpu);48int(*cpu_disable)(unsignedintcpu);49void(*cpu_die)(...
@@ -486,6 +480,7 @@ static void __init boot_cpu_init(void) int cpu = smp_processor_id(); /* Mark the boot cpu "present", "online" etc for SMP and UP case */ set_cpu_online(cpu, true); set_cpu_active(cpu, true); ...
> cpu_init_crit: > > #if !defined(CONFIG_TEGRA) > @@ -258,6 +259,7 @@ cpu_init_crit: > #endif > > mov pc, lr > +#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ If you're going to make changes here, you should probably ensure that ...
After trying the 6.1.11 version of the system (XFCE Edition), I could get the system to start, but the loading proccess get stuck on "random : crng init done". I've been waiting for about 20 minutes now and the proccess stay on like the attached image. D
start_kernel -> boot_cpu_hotplug_init 848asmlinkage __visiblevoid__init __no_sanitize_address start_kernel(void)849{873setup_nr_cpu_ids();874setup_per_cpu_areas();875smp_prepare_boot_cpu();/*arch-specific boot-cpu hooks*/876boot_cpu_hotplug_init();877 ...