This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Strange DELAY macro in hal_platrom_setup.h
- From: "Shmuel Vagner" <Shmuel dot Vagner at celeno dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Sun, 26 Feb 2006 16:49:31 +0200
- Subject: [ECOS] Strange DELAY macro in hal_platrom_setup.h
HI,
In the platform initialization code for the IXP425 the SDRAM
initialization uses a DELAY macro.
The strange thing is that the delay macro is empty and does not do any
delay (Note the #if 0 in the code below):
.macro DELAY cycles, reg0
#if 0
ldr \reg0, =\cycles
subs \reg0, \reg0, #1
subne pc, pc, #0xc
#endif
.endm
I checked with the IXP425 and the SDRAM documentation and they state
that delays are required. Moreover the initialization works fine and I
did not notice any memory problems.
Can someone please explain this?
Thanks
Shmuel
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss