Skip to content

Commit

Permalink
Temporary hack for Qemu and MIPSsim until they get a proper ELF loader.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent c0ec406 commit b490ff4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/mips/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b490ff4

Please sign in to comment.