[U-Boot] [U-boot] Some questions about BootStage functions

Hi, experts:
I have some questions about bootstage functions.(common/bootstage.c)
1. mark_bootsage record relocation question
board_init_f() will call mark_bootstage() function to record the elapsed time when system
From power on to board_init_f point.
But after running board_init_f() function, uboot will relocate u-boot code base.
So, the boot stage record "board_init_f" would be abnormal ? !
Because i did not find any code to do relocation operation for boot stage records.
2. how to understand "start_us" fiedld in bootstage_record struct ?
bootstage_start() function will init bootstage_record->start_us.
But not find which file will call bootstage_start() .
Best wishes,

Hi,
[resending on the right thread]
On Mon, Sep 16, 2013 at 1:14 AM, TigerLiu@viatech.com.cn wrote:
Hi, experts:
I have some questions about bootstage functions.(common/bootstage.c)
- mark_bootsage record relocation question
board_init_f() will call mark_bootstage() function to record the elapsed time when system
From power on to board_init_f point.
But after running board_init_f() function, uboot will relocate u-boot code base.
So, the boot stage record "board_init_f" would be abnormal ? !
Because i did not find any code to do relocation operation for boot stage records.
Please see bootstage_relocate().
- how to understand "start_us" fiedld in bootstage_record struct ?
bootstage_start() function will init bootstage_record->start_us.
But not find which file will call bootstage_start() .
bootstage_start() is called first, then bootstage_accum(). I have a few patches to add this for SPI flash, but have not sent them yet.
Regards, Simon
participants (2)
-
Simon Glass
-
TigerLiuļ¼ viatech.com.cn