aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/setup_32.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-25 17:20:08 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-28 02:52:42 -0400
commit4efb55e6916628fde549b0ef1c2830593ccf19c4 (patch)
treec8d2ac063efb6b591f6f1dda08ecffe9db97efa6 /arch/sparc/kernel/setup_32.c
parent30005efc9818d715cc72f15e962d06457c529783 (diff)
sparc32: introduce sparc32_start_kernel called from head_32.S
This gives us a C hook before we call start_kernel() Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/sparc/kernel/setup_32.c')
-rw-r--r--arch/sparc/kernel/setup_32.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c
index c052313f4dc..68dd63dea36 100644
--- a/arch/sparc/kernel/setup_32.c
+++ b/arch/sparc/kernel/setup_32.c
@@ -32,6 +32,7 @@
32#include <linux/cpu.h> 32#include <linux/cpu.h>
33#include <linux/kdebug.h> 33#include <linux/kdebug.h>
34#include <linux/export.h> 34#include <linux/export.h>
35#include <linux/start_kernel.h>
35 36
36#include <asm/io.h> 37#include <asm/io.h>
37#include <asm/processor.h> 38#include <asm/processor.h>
@@ -244,6 +245,15 @@ struct tt_entry *sparc_ttable;
244 245
245struct pt_regs fake_swapper_regs; 246struct pt_regs fake_swapper_regs;
246 247
248/* Called from head_32.S - before we have setup anything
249 * in the kernel. Be very careful with what you do here.
250 */
251void __init sparc32_start_kernel(struct linux_romvec *rp)
252{
253 prom_init(rp);
254 start_kernel();
255}
256
247void __init setup_arch(char **cmdline_p) 257void __init setup_arch(char **cmdline_p)
248{ 258{
249 int i; 259 int i;