Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
8e90a2f0
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8e90a2f0
编写于
2月 25, 2021
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OcCpuLib: Fixed showing core count for some AMD CPUs
上级
e2f219e0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
7 deletion
+13
-7
Changelog.md
Changelog.md
+1
-0
Library/OcCpuLib/OcCpuLib.c
Library/OcCpuLib/OcCpuLib.c
+12
-7
未找到文件。
Changelog.md
浏览文件 @
8e90a2f0
...
...
@@ -18,6 +18,7 @@ OpenCore Changelog
-
Removed
`KeyMergeThreshold`
as it never functioned anyway
-
Added
`acdtinfo`
utility to lookup certain products
-
Fixed
`FSBFrequency`
calculation with fractional multiplier
-
Fixed showing core count for some AMD CPUs
#### v0.6.6
-
Added keyboard and pointer entry scroll support in OpenCanopy
...
...
Library/OcCpuLib/OcCpuLib.c
浏览文件 @
8e90a2f0
...
...
@@ -525,13 +525,6 @@ ScanAmdProcessor (
Recalculate
=
TRUE
;
DEBUG_CODE_END
();
//
// Faking an Intel Core i5 Processor.
// This value is purely cosmetic, but it makes sense to fake something
// that is somewhat representative of the kind of Processor that's actually
// in the system
//
Cpu
->
AppleProcessorType
=
AppleProcessorTypeCorei5Type5
;
//
// get TSC Frequency calculated in OcTimerLib, unless we got it already from virtualization extensions.
// FIXME(1): This code assumes the CPU operates in P0. Either ensure it does
...
...
@@ -551,6 +544,18 @@ ScanAmdProcessor (
Cpu
->
ThreadCount
=
(
UINT16
)
(
BitFieldRead32
(
CpuidEcx
,
0
,
7
)
+
1
);
}
//
// Faking an Intel processor with matching core count if possible.
// This value is purely cosmetic, but it makes sense to fake something
// that is somewhat representative of the kind of Processor that's actually
// in the system
//
if
(
Cpu
->
ThreadCount
>=
8
)
{
Cpu
->
AppleProcessorType
=
AppleProcessorTypeXeonW
;
}
else
{
Cpu
->
AppleProcessorType
=
AppleProcessorTypeCorei5Type5
;
}
if
(
Cpu
->
Family
==
AMD_CPU_FAMILY
)
{
Divisor
=
0
;
CoreFrequencyID
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录