From: Wolfgang Denk Date: Mon, 22 Nov 2004 17:52:10 +0100 Subject: [U-Boot-Users] start.S code snippet doubt In-Reply-To: Your message of "Mon, 22 Nov 2004 13:52:09 GMT." <1101131529.23c64d7cnishant.subs@myrealbox.com> Message-ID: <20041122165215.1BE3BC1430@atlas.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 <1101131529.23c64d7cnishant.subs@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