diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-07-11 07:53:44 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:41 -0400 |
commit | b490ff42709546d5cf6b631c1a84a5f4fcb020e4 (patch) | |
tree | 783d4ac5af1ff44d8839197f140e105dfb334de5 /arch/mips/kernel/head.S | |
parent | c0ec406c80a65590dbdb60ed0d0c8e73e6c3884f (diff) |
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/head.S')
-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 9f6927169358..d7d7de7cdb40 100644 --- a/arch/mips/kernel/head.S +++ b/arch/mips/kernel/head.S | |||
@@ -131,6 +131,14 @@ | |||
131 | EXPORT(stext) # used for profiling | 131 | EXPORT(stext) # used for profiling |
132 | EXPORT(_stext) | 132 | EXPORT(_stext) |
133 | 133 | ||
134 | #ifdef CONFIG_QEMU | ||
135 | /* | ||
136 | * Give us a fighting chance of running if execution beings at the | ||
137 | * kernel load address. This is needed because this platform does | ||
138 | * not have a ELF loader yet. | ||
139 | */ | ||
140 | j kernel_entry | ||
141 | #endif | ||
134 | __INIT | 142 | __INIT |
135 | 143 | ||
136 | NESTED(kernel_entry, 16, sp) # kernel entry point | 144 | NESTED(kernel_entry, 16, sp) # kernel entry point |
@@ -166,6 +174,10 @@ NESTED(kernel_entry, 16, sp) # kernel entry point | |||
166 | j start_kernel | 174 | j start_kernel |
167 | END(kernel_entry) | 175 | END(kernel_entry) |
168 | 176 | ||
177 | #ifdef CONFIG_QEMU | ||
178 | __INIT | ||
179 | #endif | ||
180 | |||
169 | #ifdef CONFIG_SMP | 181 | #ifdef CONFIG_SMP |
170 | /* | 182 | /* |
171 | * SMP slave cpus entry point. Board specific code for bootstrap calls this | 183 | * SMP slave cpus entry point. Board specific code for bootstrap calls this |