]> git.hungrycats.org Git - linux/commitdiff
[PATCH] conditional ROMfs copy for NETtel/5307 board
authorGreg Ungerer <gerg@snapgear.com>
Mon, 7 Jul 2003 16:21:25 +0000 (09:21 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 7 Jul 2003 16:21:25 +0000 (09:21 -0700)
Conditionally copy the ROMfs filesystem on the NETtel/5307
target board only if using a ROMfs.

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

index 70eaf4cf7579e61ee24223be37f84b3b1cb8465d..009a40506c06cfea00f3efa3f8d0564bbad4fd0a 100644 (file)
@@ -147,6 +147,8 @@ _start:
        movec   %d0,%CACR
        nop
 
+
+#ifdef CONFIG_ROMFS_FS
        /*
         *      Move ROM filesystem above bss :-)
         */
@@ -168,6 +170,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.
         */