
-----Original Message----- From: wd@denx.de [mailto:wd@denx.de] Sent: 16 August 2007 10:41 To: Ulf Samuelsson Cc: Peter Pearse; u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] [GIT PULL] [ARM] Please pull fromgit://denx.de/git/u-boot-arm.git
Dear Ulf,
cpu/arm920t/start.S => I'm surprised to see a lot of
intialization
code has now been added to the "reset"
entry point.
Is this by accident, or am I missing something?
The changes are there to allow you to boot from a dataflash. A bootstrap will initialize the SDRAM and copy from the
dataflash (or
NAND flash)
IIRC: The code avoids reinitialization of stuff which will
crash U-Boot.
(And sets the LED)
I'm afraid I don't understand. We are not talking about any startup code, but about the code of the "reset" function, i. e. what casues the board to reset.
The writers (and cut & pasters) of ARM code seem to have assumed that
reset:
is the entry to the code which runs immediately after the processor is reset, rather than the code which makes the processor reset.
Could we accept Ulf's code whilst I give this more consideration?
Peter
Maybe the code was added to the wrong place in the file?
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@denx.de "It is easier to port a shell than a shell script." - Larry Wall