Temporary hack for Qemu and MIPSsim until they get a proper ELF loader.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 11 Jul 2005 11:53:44 +0000 (11:53 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:31:41 +0000 (19:31 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/head.S

index 9f6927169358bd19aae511f4f87c30ef780d4327..d7d7de7cdb402a70250d9fd08fc590f68bd69390 100644 (file)
 EXPORT(stext)                                  # used for profiling
 EXPORT(_stext)
 
+#ifdef CONFIG_QEMU
+       /*
+        * Give us a fighting chance of running if execution beings at the
+        * kernel load address.  This is needed because this platform does
+        * not have a ELF loader yet.
+        */
+       j       kernel_entry
+#endif
        __INIT
 
 NESTED(kernel_entry, 16, sp)                   # kernel entry point
@@ -166,6 +174,10 @@ NESTED(kernel_entry, 16, sp)                       # kernel entry point
        j               start_kernel
        END(kernel_entry)
 
+#ifdef CONFIG_QEMU
+       __INIT
+#endif
+
 #ifdef CONFIG_SMP
 /*
  * SMP slave cpus entry point.  Board specific code for bootstrap calls this