Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
dec8b1ca
Commit
dec8b1ca
authored
Oct 08, 2007
by
Franck Bui-Huu
Committed by
Ralf Baechle
Oct 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Add BUG_ON assertion for attempt to run kernel on the wrong CPU type.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
89a8a5a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/cpu-probe.c
+8
-0
No files found.
arch/mips/kernel/cpu-probe.c
View file @
dec8b1ca
...
...
@@ -922,6 +922,14 @@ __init void cpu_probe(void)
default:
c
->
cputype
=
CPU_UNKNOWN
;
}
/*
* Platform code can force the cpu type to optimize code
* generation. In that case be sure the cpu type is correctly
* manually setup otherwise it could trigger some nasty bugs.
*/
BUG_ON
(
current_cpu_type
()
!=
c
->
cputype
);
if
(
c
->
options
&
MIPS_CPU_FPU
)
{
c
->
fpu_id
=
cpu_get_fpu_id
();
...
...
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