This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]