让kernel 停止启动
--- a/init/main.c
+++ b/init/main.c
@@ -504,6 +504,8 @@ static void __init mm_init(void)
mm_init_dur = read_fast_counter() - mm_init_dur;
}
+volatile int done=1;
+
asmlinkage __visible void __init start_kernel(void)
{
char *command_line;
@@ -512,6 +514,11 @@ asmlinkage __visible void __init start_kernel(void)
u32 setup_arch_time_pmu;
u32 setup_arch_time_32k;
+while (done==1)
+{
-
asm("NOP");
+}
+
start_time_pmu = ARM_CCNT_Read();
start_time_pmu = ARM_CCNT_Read();
CopyRight @Widic 2017
Mail:widicjane@163.com