From 7aa647da72e82c54b3d95ab3ba5560859abb0181 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Mon, 7 Jul 2003 09:21:25 -0700 Subject: [PATCH] [PATCH] conditional ROMfs copy for NETtel/5307 board Conditionally copy the ROMfs filesystem on the NETtel/5307 target board only if using a ROMfs. --- arch/m68knommu/platform/5307/NETtel/crt0_ram.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/m68knommu/platform/5307/NETtel/crt0_ram.S b/arch/m68knommu/platform/5307/NETtel/crt0_ram.S index 70eaf4cf7579..009a40506c06 100644 --- a/arch/m68knommu/platform/5307/NETtel/crt0_ram.S +++ b/arch/m68knommu/platform/5307/NETtel/crt0_ram.S @@ -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. */ -- 2.39.5