Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
2657d54c
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,发现更多精彩内容 >>
提交
2657d54c
编写于
8月 20, 2019
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OcDataHubLib: Specify non 24 MHz ARTFrequency to macOS
上级
5ce54f3a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
8 deletion
+18
-8
Include/Library/OcCpuLib.h
Include/Library/OcCpuLib.h
+3
-3
Include/ProcessorInfo.h
Include/ProcessorInfo.h
+7
-1
Library/OcCpuLib/OcCpuLib.c
Library/OcCpuLib/OcCpuLib.c
+4
-4
Library/OcDataHubLib/OcDataHubLib.c
Library/OcDataHubLib/OcDataHubLib.c
+4
-0
未找到文件。
Include/Library/OcCpuLib.h
浏览文件 @
2657d54c
...
...
@@ -75,9 +75,9 @@ typedef struct {
// If unreported, the frequency is looked up based on the model and family.
//
// Nominal Core Crystal Clock Frequency for known processor families:
// Intel Xeon Scalable with CPUID signature 0x0655: 25 Mhz
// 6th and 7th generation Intel Core & Xeon W:
24 Mhz
// Nex Generation Intel Atom with CPUID 0x065C:
19.2 Mhz
// Intel Xeon Scalable with CPUID signature 0x0655: 25 Mhz
(server segment)
// 6th and 7th generation Intel Core & Xeon W:
24 Mhz (client segment)
// Nex Generation Intel Atom with CPUID 0x065C:
19.2 Mhz (atom segment)
//
UINT64
ARTFrequency
;
...
...
Include/ProcessorInfo.h
浏览文件 @
2657d54c
...
...
@@ -21,9 +21,15 @@
#define BASE_NHM_CLOCK_SOURCE 133333333ULL
//
// Skylake bus clock is fixed at 100MHz
// This constant is also known as BASE_ART_CLOCK_SOURCE in XNU
//
#define CLIENT_ART_CLOCK_SOURCE 24000000ULL
#define SERVER_ART_CLOCK_SOURCE 25000000ULL
#define ATOM_ART_CLOCK_SOURCE 19200000ULL
#define
BASE_ART_CLOCK_SOURCE 24000000ULL
#define
DEFAULT_ART_CLOCK_SOURCE CLIENT_ART_CLOCK_SOURCE
#define MSR_PIC_MSG_CONTROL 0x2E
#define MSR_CORE_THREAD_COUNT 0x35
...
...
Library/OcCpuLib/OcCpuLib.c
浏览文件 @
2657d54c
...
...
@@ -692,13 +692,13 @@ ScanIntelProcessor (
case
CPU_MODEL_SKYLAKE_DT
:
case
CPU_MODEL_KABYLAKE
:
case
CPU_MODEL_KABYLAKE_DT
:
Cpu
->
ARTFrequency
=
24000000ULL
;
// 24 Mhz
Cpu
->
ARTFrequency
=
CLIENT_ART_CLOCK_SOURCE
;
// 24 Mhz
break
;
case
CPU_MODEL_DENVERTON
:
Cpu
->
ARTFrequency
=
25000000ULL
;
// 25 Mhz
Cpu
->
ARTFrequency
=
SERVER_ART_CLOCK_SOURCE
;
// 25 Mhz
break
;
case
CPU_MODEL_GOLDMONT
:
Cpu
->
ARTFrequency
=
19200000ULL
;
// 19.2 Mhz
Cpu
->
ARTFrequency
=
ATOM_ART_CLOCK_SOURCE
;
// 19.2 Mhz
break
;
}
if
(
Cpu
->
ARTFrequency
>
0
)
{
...
...
@@ -736,7 +736,7 @@ ScanIntelProcessor (
// it's 24 Mhz like most Intel chips to date.
//
if
(
Cpu
->
ARTFrequency
==
0
)
{
Cpu
->
ARTFrequency
=
24000000ULL
;
// 24 Mhz
Cpu
->
ARTFrequency
=
DEFAULT_ART_CLOCK_SOURCE
;
DEBUG
((
DEBUG_INFO
,
"OCCPU: Fallback Core Crystal Clock Frequency %LuHz
\n
"
,
Cpu
->
ARTFrequency
));
}
...
...
Library/OcDataHubLib/OcDataHubLib.c
浏览文件 @
2657d54c
...
...
@@ -14,6 +14,7 @@
#include <Uefi.h>
#include <ProcessorInfo.h>
#include <IndustryStandard/Pci.h>
#include <Guid/ApplePlatformInfo.h>
...
...
@@ -279,6 +280,9 @@ UpdateDataHub (
Data
->
FSBFrequency
=
&
CpuInfo
->
FSBFrequency
;
}
DataHubSetAppleProcessorData
(
DataHub
,
OC_FSB_FREQUENCY
,
Data
->
FSBFrequency
,
sizeof
(
*
Data
->
FSBFrequency
));
if
(
Data
->
ARTFrequency
==
NULL
&&
CpuInfo
->
ARTFrequency
>
0
&&
CpuInfo
->
ARTFrequency
!=
DEFAULT_ART_CLOCK_SOURCE
)
{
Data
->
ARTFrequency
=
&
CpuInfo
->
ARTFrequency
;
}
DataHubSetAppleProcessorData
(
DataHub
,
OC_ART_FREQUENCY
,
Data
->
ARTFrequency
,
sizeof
(
*
Data
->
ARTFrequency
));
DataHubSetAppleMiscData
(
DataHub
,
OC_DEVICE_PATHS_SUPPORTED
,
Data
->
DevicePathsSupported
,
sizeof
(
*
Data
->
DevicePathsSupported
));
DataHubSetAppleMiscData
(
DataHub
,
OC_SMC_REVISION
,
Data
->
SmcRevision
,
OC_SMC_REVISION_SIZE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录