.

.

.

common/main.c

/* We come here after U-Boot is initialised and ready to process commands */
1    void main_loop(void)
2    {
3            const char *s;
4    
5            bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
6    
7    #ifdef CONFIG_VERSION_VARIABLE
8            setenv("ver", version_string);  /* set version variable */
9    #endif /* CONFIG_VERSION_VARIABLE */
10    
11            cli_init();
12    
13            run_preboot_environment_command();
14   
15    #if defined(CONFIG_UPDATE_TFTP)
16            update_tftp(0UL, NULL, NULL);
17    #endif /* CONFIG_UPDATE_TFTP */
18    
19            s = bootdelay_process();
20            if (cli_process_fdt(&s))
21                    cli_secure_boot_cmd(s);
22    
23            autoboot_command(s);
24    
25            cli_loop();
26            panic("No CLI available");
27    }
  • 5번 줄에서 bootstage_mark_name 함수를 실행하여 현재 bootstage를 기록합니다. BOOTSTAGE_ID_MAIN_LOOP은 include/bootstage.h에서 171로 선언되어 있습니다. 이 함수는 common/bootstage.c에 정의되어 있습니다.

results matching ""

    No results matching ""