Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
8a185d14
Commit
8a185d14
authored
Jun 16, 2005
by
Maciej W. Rozycki
Committed by
Ralf Baechle
Oct 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix types for firmware arguments. Don't define unneeded messages.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
2e284967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
arch/mips/dec/prom/init.c
arch/mips/dec/prom/init.c
+9
-7
No files found.
arch/mips/dec/prom/init.c
View file @
8a185d14
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
*/
*/
#include <linux/config.h>
#include <linux/config.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/linkage.h>
#include <linux/smp.h>
#include <linux/smp.h>
#include <linux/string.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/types.h>
...
@@ -85,17 +87,13 @@ void __init which_prom(s32 magic, s32 *prom_vec)
...
@@ -85,17 +87,13 @@ void __init which_prom(s32 magic, s32 *prom_vec)
void
__init
prom_init
(
void
)
void
__init
prom_init
(
void
)
{
{
extern
void
dec_machine_halt
(
void
);
extern
void
ATTRIB_NORET
dec_machine_halt
(
void
);
static
char
cpu_msg
[]
__initdata
=
static
char
cpu_msg
[]
__initdata
=
"Sorry, this kernel is compiled for a wrong CPU type!
\n
"
;
"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
argc
=
fw_arg0
;
s32
argv
=
fw_arg1
;
s32
*
argv
=
(
void
*
)
fw_arg1
;
u32
magic
=
fw_arg2
;
u32
magic
=
fw_arg2
;
s32
prom_vec
=
fw_arg3
;
s32
*
prom_vec
=
(
void
*
)
fw_arg3
;
/*
/*
* Determine which PROM we have
* Determine which PROM we have
...
@@ -113,6 +111,8 @@ void __init prom_init(void)
...
@@ -113,6 +111,8 @@ void __init prom_init(void)
#if defined(CONFIG_CPU_R3000)
#if defined(CONFIG_CPU_R3000)
if
((
current_cpu_data
.
cputype
==
CPU_R4000SC
)
||
if
((
current_cpu_data
.
cputype
==
CPU_R4000SC
)
||
(
current_cpu_data
.
cputype
==
CPU_R4400SC
))
{
(
current_cpu_data
.
cputype
==
CPU_R4400SC
))
{
static
char
r4k_msg
[]
__initdata
=
"Please recompile with
\"
CONFIG_CPU_R4x00 = y
\"
.
\n
"
;
printk
(
cpu_msg
);
printk
(
cpu_msg
);
printk
(
r4k_msg
);
printk
(
r4k_msg
);
dec_machine_halt
();
dec_machine_halt
();
...
@@ -122,6 +122,8 @@ void __init prom_init(void)
...
@@ -122,6 +122,8 @@ void __init prom_init(void)
#if defined(CONFIG_CPU_R4X00)
#if defined(CONFIG_CPU_R4X00)
if
((
current_cpu_data
.
cputype
==
CPU_R3000
)
||
if
((
current_cpu_data
.
cputype
==
CPU_R3000
)
||
(
current_cpu_data
.
cputype
==
CPU_R3000A
))
{
(
current_cpu_data
.
cputype
==
CPU_R3000A
))
{
static
char
r3k_msg
[]
__initdata
=
"Please recompile with
\"
CONFIG_CPU_R3000 = y
\"
.
\n
"
;
printk
(
cpu_msg
);
printk
(
cpu_msg
);
printk
(
r3k_msg
);
printk
(
r3k_msg
);
dec_machine_halt
();
dec_machine_halt
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment