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
1d007cd5
Commit
1d007cd5
authored
Feb 26, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: clean up cpu capabilities accesses, cyrix.c
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
4cbe668a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
arch/x86/kernel/cpu/cyrix.c
arch/x86/kernel/cpu/cyrix.c
+6
-6
No files found.
arch/x86/kernel/cpu/cyrix.c
View file @
1d007cd5
...
@@ -190,12 +190,12 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c)
...
@@ -190,12 +190,12 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c)
* Bit 31 in normal CPUID used for nonstandard 3DNow ID;
* Bit 31 in normal CPUID used for nonstandard 3DNow ID;
* 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway
* 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway
*/
*/
clear_
bit
(
0
*
32
+
31
,
c
->
x86_capability
);
clear_
cpu_cap
(
c
,
0
*
32
+
31
);
/* Cyrix used bit 24 in extended (AMD) CPUID for Cyrix MMX extensions */
/* Cyrix used bit 24 in extended (AMD) CPUID for Cyrix MMX extensions */
if
(
test_
bit
(
1
*
32
+
24
,
c
->
x86_capability
))
{
if
(
test_
cpu_cap
(
c
,
1
*
32
+
24
))
{
clear_
bit
(
1
*
32
+
24
,
c
->
x86_capability
);
clear_
cpu_cap
(
c
,
1
*
32
+
24
);
set_
bit
(
X86_FEATURE_CXMMX
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_CXMMX
);
}
}
do_cyrix_devid
(
&
dir0
,
&
dir1
);
do_cyrix_devid
(
&
dir0
,
&
dir1
);
...
@@ -242,7 +242,7 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c)
...
@@ -242,7 +242,7 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c)
}
else
/* 686 */
}
else
/* 686 */
p
=
Cx86_cb
+
1
;
p
=
Cx86_cb
+
1
;
/* Emulate MTRRs using Cyrix's ARRs. */
/* Emulate MTRRs using Cyrix's ARRs. */
set_
bit
(
X86_FEATURE_CYRIX_ARR
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_CYRIX_ARR
);
/* 6x86's contain this bug */
/* 6x86's contain this bug */
c
->
coma_bug
=
1
;
c
->
coma_bug
=
1
;
break
;
break
;
...
@@ -319,7 +319,7 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c)
...
@@ -319,7 +319,7 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c)
if
(((
dir1
&
0x0f
)
>
4
)
||
((
dir1
&
0xf0
)
==
0x20
))
if
(((
dir1
&
0x0f
)
>
4
)
||
((
dir1
&
0xf0
)
==
0x20
))
(
c
->
x86_model
)
++
;
(
c
->
x86_model
)
++
;
/* Emulate MTRRs using Cyrix's ARRs. */
/* Emulate MTRRs using Cyrix's ARRs. */
set_
bit
(
X86_FEATURE_CYRIX_ARR
,
c
->
x86_capability
);
set_
cpu_cap
(
c
,
X86_FEATURE_CYRIX_ARR
);
break
;
break
;
case
0xf
:
/* Cyrix 486 without DEVID registers */
case
0xf
:
/* Cyrix 486 without DEVID registers */
...
...
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