Commit 3a0c121f authored by Greg Ungerer's avatar Greg Ungerer Committed by Jeff Garzik

[PATCH] conditional ROMfs copy for ARNEWSH/5206 setup

Make the ROMfs copy in the startup code for ARNEWSH/5260 board
conditional on actually using a ROMfs setup.
parent 718a256a
...@@ -157,6 +157,7 @@ _found_ram: /* Vectored here on bus err */ ...@@ -157,6 +157,7 @@ _found_ram: /* Vectored here on bus err */
movec %d0, %CACR /* Enable cache */ movec %d0, %CACR /* Enable cache */
#ifdef CONFIG_ROMFS_FS
/* /*
* Move ROM filesystem above bss :-) * Move ROM filesystem above bss :-)
*/ */
...@@ -178,6 +179,12 @@ _copy_romfs: ...@@ -178,6 +179,12 @@ _copy_romfs:
cmp.l %a0, %a2 /* Check if at end */ cmp.l %a0, %a2 /* Check if at end */
bne _copy_romfs bne _copy_romfs
#else /* CONFIG_ROMFS_FS */
lea.l _ebss, %a1
move.l %a1, _ramstart
#endif /* CONFIG_ROMFS_FS */
/* /*
* Zero out the bss region. * Zero out the bss region.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment