[U-Boot-Users] difference between _f and _r init functions

Detlef Vollmann dv at vollmann.ch
Mon Oct 15 04:14:18 CEST 2007


Mike Frysinger wrote:
> cant seem to find any explicit mention of the difference between _f and _r 
> functions ... looks like _f funcs are called "early" and _r funcs are the 
> later stuff which do more.  what's the letter stand for and generally what 
> should these be doing ?
In my current case (old U-Boot, ppc 8xx) _f runs from _f_lash, not
yet relocated, setup of and access through function pointers needs
special care, very few RAM (and stack size) available.
_r runs after relocation from _R_AM, nomal mode, no special care
required.

   Detlef




More information about the U-Boot mailing list