From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Sun, 18 Jul 2010 08:51:42 -0400 Subject: [U-Boot] [PATCH 1/5] Add basic errno support. In-Reply-To: <201007171717.27154.vapier@gentoo.org> References: <1279395948-25864-1-git-send-email-wd@denx.de> <1279395948-25864-2-git-send-email-wd@denx.de> <201007171717.27154.vapier@gentoo.org> Message-ID: <4C42F8DE.5040009@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/17/2010 05:17 PM, Mike Frysinger wrote: > On Saturday, July 17, 2010 15:45:44 Wolfgang Denk wrote: >> --- /dev/null >> +++ b/lib/errno.c >> @@ -0,0 +1 @@ >> +int errno = 0; > > drop the "= 0" so that errno ends up in the bss ? > -mike Is this going to be a problem during early startup (pre-relocation) vs. normal running? Pre-relocation, we only have a temporary stack and RAM is not set up initially. I have not looked at when RAM gets initialized vs. when env. variables get used. It is probably OK. Wolfgang? Best regards, gvb