[U-Boot-Users] start.S code snippet doubt
Wolfgang Denk
wd at denx.de
Mon Nov 22 17:52:10 CET 2004
In message <1101131529.23c64d7cnishant.subs at myrealbox.com> you wrote:
>
> What does the following code achieve: (Code snippet from start.S)
Which start.S? There are at least 25 files with this name.
> boot_cold:
> #if defined(CONFIG_MPC8260ADS)
> lis r3, CFG_DEFAULT_IMMR at h
> nop
> lwz r4, 0(r3)
> nop
> rlwinm r4, r4, 0, 8, 5
> nop
> oris r4, r4, 0x0200
> nop
> stw r4, 0(r3)
> nop
> #endif /* CONFIG_MPC8260ADS */
Did you try to understand what the code is doing? And what
CFG_DEFAULT_IMMR might mean?
> Can anyone please tell me the importance/significance of this code?
The code is very important and significant - without it U-Boot will
not run on this board.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A person who is more than casually interested in computers should be
well schooled in machine language, since it is a fundamental part of
a computer. -- Donald Knuth
More information about the U-Boot
mailing list