summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/setup_32.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-25 21:20:08 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-27 23:52:42 -0700
commit4efb55e6916628fde549b0ef1c2830593ccf19c4 (patch)
treec8d2ac063efb6b591f6f1dda08ecffe9db97efa6 /arch/sparc/kernel/setup_32.c
parent30005efc9818d715cc72f15e962d06457c529783 (diff)
downloadop-kernel-dev-4efb55e6916628fde549b0ef1c2830593ccf19c4.zip
op-kernel-dev-4efb55e6916628fde549b0ef1c2830593ccf19c4.tar.gz
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 c052313..68dd63d 100644
--- a/arch/sparc/kernel/setup_32.c
+++ b/arch/sparc/kernel/setup_32.c
@@ -32,6 +32,7 @@
#include <linux/cpu.h>
#include <linux/kdebug.h>
#include <linux/export.h>
+#include <linux/start_kernel.h>
#include <asm/io.h>
#include <asm/processor.h>
@@ -244,6 +245,15 @@ struct tt_entry *sparc_ttable;
struct pt_regs fake_swapper_regs;
+/* Called from head_32.S - before we have setup anything
+ * in the kernel. Be very careful with what you do here.
+ */
+void __init sparc32_start_kernel(struct linux_romvec *rp)
+{
+ prom_init(rp);
+ start_kernel();
+}
+
void __init setup_arch(char **cmdline_p)
{
int i;
OpenPOWER on IntegriCloud