Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11111
b: refs/heads/master
c: 8a185d1
h: refs/heads/master
i:
  11109: a25e59f
  11107: 7924552
  11103: 87b7f75
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Ralf Baechle committed Oct 29, 2005
1 parent 5f4ac5d commit cd4e54a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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: 2e2849670a740128307a770dd8b5213c31081cf2
refs/heads/master: 8a185d14b665d454bde84c6ae067beade452e7f8
16 changes: 9 additions & 7 deletions trunk/arch/mips/dec/prom/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*/
#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/linkage.h>
#include <linux/smp.h>
#include <linux/string.h>
#include <linux/types.h>
Expand Down Expand Up @@ -85,17 +87,13 @@ void __init which_prom(s32 magic, s32 *prom_vec)

void __init prom_init(void)
{
extern void dec_machine_halt(void);
extern void ATTRIB_NORET dec_machine_halt(void);
static char cpu_msg[] __initdata =
"Sorry, this kernel is compiled for a wrong CPU type!\n";
static char r3k_msg[] __initdata =
"Please recompile with \"CONFIG_CPU_R3000 = y\".\n";
static char r4k_msg[] __initdata =
"Please recompile with \"CONFIG_CPU_R4x00 = y\".\n";
s32 argc = fw_arg0;
s32 argv = fw_arg1;
s32 *argv = (void *)fw_arg1;
u32 magic = fw_arg2;
s32 prom_vec = fw_arg3;
s32 *prom_vec = (void *)fw_arg3;

/*
* Determine which PROM we have
Expand All @@ -113,6 +111,8 @@ void __init prom_init(void)
#if defined(CONFIG_CPU_R3000)
if ((current_cpu_data.cputype == CPU_R4000SC) ||
(current_cpu_data.cputype == CPU_R4400SC)) {
static char r4k_msg[] __initdata =
"Please recompile with \"CONFIG_CPU_R4x00 = y\".\n";
printk(cpu_msg);
printk(r4k_msg);
dec_machine_halt();
Expand All @@ -122,6 +122,8 @@ void __init prom_init(void)
#if defined(CONFIG_CPU_R4X00)
if ((current_cpu_data.cputype == CPU_R3000) ||
(current_cpu_data.cputype == CPU_R3000A)) {
static char r3k_msg[] __initdata =
"Please recompile with \"CONFIG_CPU_R3000 = y\".\n";
printk(cpu_msg);
printk(r3k_msg);
dec_machine_halt();
Expand Down

0 comments on commit cd4e54a

Please sign in to comment.