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
Kirill Smelkov
linux
Commits
fdd90c3c
Commit
fdd90c3c
authored
Oct 10, 2004
by
Len Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cset exclude: len.brown@intel.com|ChangeSet|20041010081245|01886
parent
2fcfece9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
arch/i386/kernel/apic.c
arch/i386/kernel/apic.c
+16
-2
No files found.
arch/i386/kernel/apic.c
View file @
fdd90c3c
...
@@ -690,8 +690,22 @@ static int __init detect_init_APIC (void)
...
@@ -690,8 +690,22 @@ static int __init detect_init_APIC (void)
goto
no_apic
;
goto
no_apic
;
}
}
if
(
!
cpu_has_apic
)
if
(
!
cpu_has_apic
)
{
goto
no_apic
;
/*
* Some BIOSes disable the local APIC in the
* APIC_BASE MSR. This can only be done in
* software for Intel P6 and AMD K7 (Model > 1).
*/
rdmsr
(
MSR_IA32_APICBASE
,
l
,
h
);
if
(
!
(
l
&
MSR_IA32_APICBASE_ENABLE
))
{
apic_printk
(
APIC_VERBOSE
,
"Local APIC disabled "
"by BIOS -- reenabling.
\n
"
);
l
&=
~
MSR_IA32_APICBASE_BASE
;
l
|=
MSR_IA32_APICBASE_ENABLE
|
APIC_DEFAULT_PHYS_BASE
;
wrmsr
(
MSR_IA32_APICBASE
,
l
,
h
);
enabled_via_apicbase
=
1
;
}
}
/*
/*
* The APIC feature bit should now be enabled
* The APIC feature bit should now be enabled
* in `cpuid'
* in `cpuid'
...
...
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