diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-07-11 11:53:44 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 19:31:41 +0100 |
commit | b490ff42709546d5cf6b631c1a84a5f4fcb020e4 (patch) | |
tree | 783d4ac5af1ff44d8839197f140e105dfb334de5 /arch/mips/kernel | |
parent | c0ec406c80a65590dbdb60ed0d0c8e73e6c3884f (diff) | |
download | op-kernel-dev-b490ff42709546d5cf6b631c1a84a5f4fcb020e4.zip op-kernel-dev-b490ff42709546d5cf6b631c1a84a5f4fcb020e4.tar.gz |
Temporary hack for Qemu and MIPSsim until they get a proper ELF loader.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/head.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S index 9f69271..d7d7de7 100644 --- a/arch/mips/kernel/head.S +++ b/arch/mips/kernel/head.S @@ -131,6 +131,14 @@ 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 |