]> git.hungrycats.org Git - linux/commitdiff
[PATCH] conditional ROMfs copy for M5272C3 board
authorGreg Ungerer <gerg@snapgear.com>
Sat, 21 Jun 2003 03:21:20 +0000 (20:21 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 21 Jun 2003 03:21:20 +0000 (20:21 -0700)
Make the ROMfs copy in the startup code for Motorola/M5272C3 board
conditional on actually using a ROMfs setup.

arch/m68knommu/platform/5272/MOTOROLA/crt0_ram.S

index c2905669e9fb0b09974534f4c86154a1e4332c1f..c5aad9dc5f5a930537d9c0d0f5b724340dc90a4e 100644 (file)
@@ -103,6 +103,7 @@ _start:
        move.l  #0x80000100, %d0                /* Setup cache mask */
        movec   %d0, %CACR                      /* Enable cache */
 
+#ifdef CONFIG_ROMFS_FS
        /*
         *      Move ROM filesystem above bss :-)
         */
@@ -124,6 +125,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.
         */