]> git.dujemihanovic.xyz Git - u-boot.git/commit
Rename getenv_r() into getenv_f()
authorWolfgang Denk <wd@denx.de>
Sat, 24 Jul 2010 19:55:43 +0000 (21:55 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 3 Aug 2010 22:45:36 +0000 (00:45 +0200)
commitcdb749778aa3a8f8d2a41dd4ad811ef822aecfe6
treefd0b779d80dd4ef0c7de0cdc7f5ad09563bb355e
parent78e1e8467795d681b3f5f75140ba175e79954273
Rename getenv_r() into getenv_f()

While running from flash, i. e. before relocation, we have only a
limited C runtime environment without writable data segment. In this
phase, some configurations (for example with environment in EEPROM)
must not use the normal getenv(), but a special function.  This
function had been called getenv_r(), with the idea that the "_r"
suffix would mean the same as in the _r_eentrant versions of some of
the C library functions (for example getdate vs. getdate_r, getgrent
vs. getgrent_r, etc.).

Unfortunately this was a misleading name, as in U-Boot the "_r"
generally means "running from RAM", i. e. _after_ relocation.

To avoid confusion, rename into getenv_f() [as "running from flash"]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
70 files changed:
README
arch/arm/lib/board.c
arch/avr32/lib/board.c
arch/blackfin/lib/board.c
arch/blackfin/lib/post.c
arch/i386/lib/board.c
arch/m68k/lib/board.c
arch/mips/cpu/incaip_clock.c
arch/mips/lib/board.c
arch/powerpc/cpu/mpc8xx/speed.c
arch/powerpc/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
arch/powerpc/lib/board.c
arch/sparc/lib/board.c
board/Marvell/db64360/mv_eth.c
board/Marvell/db64460/mv_eth.c
board/avnet/fx12mm/fx12mm.c
board/cray/L1/L1.c
board/dave/PPChameleonEVB/PPChameleonEVB.c
board/esd/adciop/adciop.c
board/esd/apc405/apc405.c
board/esd/ar405/ar405.c
board/esd/ash405/ash405.c
board/esd/canbt/canbt.c
board/esd/cms700/cms700.c
board/esd/cpci2dp/cpci2dp.c
board/esd/cpci405/cpci405.c
board/esd/cpci750/mv_eth.c
board/esd/cpciiser4/cpciiser4.c
board/esd/dasa_sim/dasa_sim.c
board/esd/dp405/dp405.c
board/esd/du405/du405.c
board/esd/du440/du440.c
board/esd/hh405/hh405.c
board/esd/hub405/hub405.c
board/esd/meesc/meesc.c
board/esd/ocrtc/ocrtc.c
board/esd/otc570/otc570.c
board/esd/pci405/pci405.c
board/esd/plu405/plu405.c
board/esd/pmc405/pmc405.c
board/esd/voh405/voh405.c
board/esd/vom405/vom405.c
board/esd/wuh405/wuh405.c
board/evb64260/eth.c
board/g2000/g2000.c
board/gen860t/gen860t.c
board/inka4x0/inka4x0.c
board/ip860/ip860.c
board/kup/kup4k/kup4k.c
board/mpl/common/common_util.c
board/mpl/common/memtst.c
board/mpl/mip405/mip405.c
board/mpl/pati/pati.c
board/mpl/pip405/pip405.c
board/mpl/vcma9/vcma9.c
board/ppmc8260/ppmc8260.c
board/prodrive/p3mx/mv_eth.c
board/sbc405/sbc405.c
board/sbc8260/sbc8260.c
board/siemens/CCM/ccm.c
board/siemens/SCM/scm.c
board/snmc/qs850/qs850.c
board/snmc/qs860t/qs860t.c
board/tqc/tqm8260/tqm8260.c
board/trab/trab.c
board/uc100/uc100.c
common/cmd_nvedit.c
drivers/mtd/cfi_flash.c
include/common.h
post/post.c