]> git.hungrycats.org Git - linux/commitdiff
[PATCH] conditional ROMfs copy for Arnewsh 5307 board
authorGreg Ungerer <gerg@snapgear.com>
Tue, 1 Jul 2003 02:34:30 +0000 (19:34 -0700)
committerAnton Blanchard <anton@samba.org>
Tue, 1 Jul 2003 02:34:30 +0000 (19:34 -0700)
Make the ROMfs copy in the startup code for ARNEWSH 5307 board
conditional on actually using a ROMfs setup.

arch/m68knommu/platform/5307/ARNEWSH/crt0_ram.S

index 84e266b122b5b08678f03c41bf843b3414c56db4..6779bb0dee354b017938fadd5be2378d8dd7af96 100644 (file)
@@ -110,6 +110,8 @@ _start:
        movc  %d0,%CACR
        nop
 
+
+#ifdef CONFIG_ROMFS_FS
        /*
         *      Move ROM filesystem above bss :-)
         */
@@ -131,6 +133,12 @@ _copy_romfs:
        cmp.l   %a0, %a2                        /* Check if at end */
        bne     _copy_romfs
 
+#else /* CONFIG_ROMFS_FS */
+       lea.l   _ebss, %a1
+       move.l  %a1, _ramstart
+#endif /* CONFIG_ROMFS_FS */
+
+
        /*
         *      Zero out the bss region.
         */