From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sun, 25 May 2008 10:15:01 +0200 Subject: [U-Boot-Users] [PATCH 3/3][MIPS] lib_mips/time.c: Fix improper use of CFG_HZ and timer routines In-Reply-To: Your message of "Sun, 25 May 2008 11:04:29 +0900." <4838C92D.7020700@ruby.dti.ne.jp> Message-ID: <20080525081501.241BF247CC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <4838C92D.7020700@ruby.dti.ne.jp> you wrote: > Wolfgang Denk wrote: > > Be careful - keep in mind that variables in the data segment will be > > read-only before relocation to RAM, and variables in BSS will be > > uninitialized *and* get overwritten with zero when the BSS gets > > initialized. > > Sure. We'll probably need to move timer_init to board_init_r at the end. I'm not sure if this works. We use udelay() and friends all over the place - a long time before that. The timer implementation should have no such restrictions as being available only after relocation. Timers / delays are such a basic feature that they should be available everywhere. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de > Is there a way to determine Yesterday's date using Unix utilities? echo "what is yesterday's date?" | /bin/mail root -- Randal L. Schwartz in