]> git.dujemihanovic.xyz Git - u-boot.git/commit
Fix incorrect use of getenv() before relocation
authorWolfgang Denk <wd@denx.de>
Wed, 4 May 2011 10:32:28 +0000 (10:32 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 12 May 2011 17:48:42 +0000 (19:48 +0200)
commitf0c0b3a9e6f28a34d6da5edabba1e874fdf8e675
treeb48adf0159f02551ab3318f469b085cfa0b26bb8
parenta02a884b95c47e114a54f2751d03f139f312af2f
Fix incorrect use of getenv() before relocation

A large number of boards incorrectly used getenv() in their board init
code running before relocation.  In some cases this caused U-Boot to
hang when certain environment variables grew too long.
Fix the code to use getenv_r().

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: The LEOX team <team@leox.org>
Cc: Michael Schwingen <michael@schwingen.org>
Cc: Georg Schardt <schardt@team-ctech.de>
Cc: Werner Pfister <Pfister_Werner@intercontrol.de>
Cc: Dirk Eibach <eibach@gdsys.de>
Cc: Peter De Schrijver <p2@mind.be>
Cc: John Zhan <zhanz@sinovee.com>
Cc: Rishi Bhattacharya <rishi@ti.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
61 files changed:
board/LEOX/elpt860/elpt860.c
board/RRvision/RRvision.c
board/actux1/actux1.c
board/actux2/actux2.c
board/actux3/actux3.c
board/amcc/acadia/acadia.c
board/amcc/bamboo/bamboo.c
board/amcc/bluestone/bluestone.c
board/amcc/bubinga/bubinga.c
board/amcc/canyonlands/canyonlands.c
board/amcc/ebony/ebony.c
board/amcc/katmai/katmai.c
board/amcc/kilauea/kilauea.c
board/amcc/luan/luan.c
board/amcc/makalu/makalu.c
board/amcc/ocotea/ocotea.c
board/amcc/redwood/redwood.c
board/amcc/sequoia/sequoia.c
board/amcc/taihu/taihu.c
board/amcc/taishan/taishan.c
board/amcc/walnut/walnut.c
board/amcc/yosemite/yosemite.c
board/amcc/yucca/yucca.c
board/amirix/ap1000/ap1000.c
board/avnet/fx12mm/fx12mm.c
board/c2mon/c2mon.c
board/digsy_mtc/digsy_mtc.c
board/etx094/etx094.c
board/gdsys/405ep/dlvision-10g.c
board/gdsys/405ep/io.c
board/gdsys/405ep/iocon.c
board/gdsys/dlvision/dlvision.c
board/gdsys/gdppc440etx/gdppc440etx.c
board/gdsys/intip/intip.c
board/gdsys/neo/neo.c
board/gw8260/gw8260.c
board/hermes/hermes.c
board/ixdp425/ixdp425.c
board/lwmon5/lwmon5.c
board/micronas/vct/vct.c
board/ml2/ml2.c
board/mosaixtech/icon/icon.c
board/pcs440ep/pcs440ep.c
board/prodrive/alpr/alpr.c
board/prodrive/p3mx/p3mx.c
board/prodrive/p3p440/p3p440.c
board/prodrive/pdnb3/pdnb3.c
board/quad100hd/quad100hd.c
board/quantum/quantum.c
board/rbc823/rbc823.c
board/socrates/socrates.c
board/svm_sc8xx/svm_sc8xx.c
board/t3corp/t3corp.c
board/ti/omap5912osk/omap5912osk.c
board/tqc/tqm8260/tqm8260.c
board/tqc/tqm8272/tqm8272.c
board/tqc/tqm85xx/tqm85xx.c
board/tqc/tqm8xx/tqm8xx.c
board/xes/common/board.c
board/xes/xpedite1000/xpedite1000.c
board/zeus/zeus.c