aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/head.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/head.S')
-rw-r--r--arch/mips/kernel/head.S12
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 @@
131EXPORT(stext) # used for profiling 131EXPORT(stext) # used for profiling
132EXPORT(_stext) 132EXPORT(_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
136NESTED(kernel_entry, 16, sp) # kernel entry point 144NESTED(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