Hi Tiger, On Mon, Sep 16, 2013 at 11:09 PM, <tiger...@viatech.com.cn> wrote: > Hi, Simon: > > 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.
Please see bootstage_relocate(). > > 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() . This is used by functions which want to measure accumulated time. 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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot