Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309525
b: refs/heads/master
c: 4efb55e
h: refs/heads/master
i:
  309523: cf7e856
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed May 28, 2012
1 parent e43c41b commit 34fb1b4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30005efc9818d715cc72f15e962d06457c529783
refs/heads/master: 4efb55e6916628fde549b0ef1c2830593ccf19c4
10 changes: 2 additions & 8 deletions trunk/arch/sparc/kernel/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -661,16 +661,10 @@ continue_boot:
wr %g3, PSR_ET, %psr
WRITE_PAUSE

/* First we call prom_init() to set up PROMLIB, then
* off to start_kernel().
*/

/* Call sparc32_start_kernel(struct linux_romvec *rp) */
sethi %hi(prom_vector_p), %g5
ld [%g5 + %lo(prom_vector_p)], %o0
call prom_init
nop

call start_kernel
call sparc32_start_kernel
nop

/* We should not get here. */
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/sparc/kernel/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ static inline unsigned long kimage_addr_to_ra(const char *p)
#endif

#ifdef CONFIG_SPARC32
/* setup_32.c */
void sparc32_start_kernel(struct linux_romvec *rp);

/* cpu.c */
extern void cpu_probe(void);

Expand Down
10 changes: 10 additions & 0 deletions trunk/arch/sparc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 34fb1b4

Please sign in to comment.