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

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

index c9ac716240ab8f062b4aefd0ef55d988517b4e28..fa0152a1ab012b8e5fda2ff5646c674dd11ef873 100644 (file)
@@ -174,6 +174,7 @@ _start:
        nop
 
 
+#ifdef CONFIG_ROMFS_FS
        /*
         *      Move ROM filesystem above bss :-)
         */
@@ -195,6 +196,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.
         */