Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
af6a6a47
Commit
af6a6a47
authored
14 years ago
by
Russ Cox
Browse files
Options
Downloads
Patches
Plain Diff
mp: do not panic on surprising hw
parent
1a81e38b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mp.c
+12
-3
12 additions, 3 deletions
mp.c
with
12 additions
and
3 deletions
mp.c
+
12
−
3
View file @
af6a6a47
...
...
@@ -113,9 +113,10 @@ mpinit(void)
switch
(
*
p
){
case
MPPROC
:
proc
=
(
struct
mpproc
*
)
p
;
cprintf
(
"mpproc %d
\n
"
,
proc
->
apicid
);
if
(
ncpu
!=
proc
->
apicid
){
cprintf
(
"mpinit: ncpu=%d apic
p
id=%d
\n
"
,
ncpu
,
proc
->
apicid
);
panic
(
"mpinit"
)
;
cprintf
(
"mpinit: ncpu=%d apicid=%d
\n
"
,
ncpu
,
proc
->
apicid
);
ismp
=
0
;
}
if
(
proc
->
flags
&
MPBOOT
)
bcpu
=
&
cpus
[
ncpu
];
...
...
@@ -135,9 +136,17 @@ mpinit(void)
continue
;
default:
cprintf
(
"mpinit: unknown config type %x
\n
"
,
*
p
);
panic
(
"mpinit"
)
;
ismp
=
0
;
}
}
if
(
!
ismp
){
// Didn't like what we found; fall back to no MP.
ncpu
=
1
;
lapic
=
0
;
ioapicid
=
0
;
return
;
}
if
(
mp
->
imcrp
){
// Bochs doesn't support IMCR, so this doesn't run on Bochs.
// But it would on real hardware.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment