Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
4e5c22d5
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,发现更多精彩内容 >>
提交
4e5c22d5
编写于
5月 19, 2019
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCorePlatform: Add support for SMC version SMBIOS table
上级
fc883db8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
43 addition
and
15 deletion
+43
-15
Changelog.md
Changelog.md
+1
-0
Docs/Configuration.pdf
Docs/Configuration.pdf
+0
-0
Docs/Configuration.tex
Docs/Configuration.tex
+10
-3
Docs/Differences/Differences.pdf
Docs/Differences/Differences.pdf
+0
-0
Docs/Differences/Differences.tex
Docs/Differences/Differences.tex
+13
-6
Docs/SampleFull.plist
Docs/SampleFull.plist
+2
-0
Platform/OpenCore/OpenCorePlatform.c
Platform/OpenCore/OpenCorePlatform.c
+17
-6
未找到文件。
Changelog.md
浏览文件 @
4e5c22d5
...
...
@@ -15,6 +15,7 @@ OpenCore Changelog
-
Added
`Security`
->
`ScanPolicy`
preference
-
Fixed invalid
`board-rev`
exposure in Data Hub
-
Fixed SMBIOS Type 133 table exposure
-
Added support for SMBIOS Type 134 table exposure
#### v0.0.1
-
Initial developer preview release
Docs/Configuration.pdf
浏览文件 @
4e5c22d5
无法预览此类型文件
Docs/Configuration.tex
浏览文件 @
4e5c22d5
...
...
@@ -2491,13 +2491,20 @@ Apple ROM Version
\texttt
{
MacBook
-
Aluminum
}
.
\item
\texttt
{
PlatformFeature
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
integer
}
\\
\textbf
{
Default value
}
:
\texttt
{
0
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
integer
}
,
32
-
bit
\\
\textbf
{
Default value
}
:
\texttt
{
0
xFFFFFFFF
}
\\
\textbf
{
SMBIOS
}
:
\texttt
{
APPLE
\_
SMBIOS
\_
TABLE
\_
TYPE
133
}
-
\texttt
{
PlatformFeature
}
\\
\textbf
{
Description
}
: Platform features bitmask. Refer to
\href
{
https:
//
github.com
/
acidanthera
/
EfiPkg
/
blob
/
master
/
Include
/
IndustryStandard
/
AppleFeatures.h
}{
AppleFeatures.h
}
for more details.
for more details. Use
\texttt
{
0
xFFFFFFFF
}
value to not provide this table.
\item
\texttt
{
SmcVersion
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
data
}
,
16
bytes
\\
\textbf
{
Default value
}
: All zero
\\
\textbf
{
SMBIOS
}
:
\texttt
{
APPLE
\_
SMBIOS
\_
TABLE
\_
TYPE
134
}
-
\texttt
{
Version
}
\\
\textbf
{
Description
}
: ASCII string containing SMC version in upper case.
Missing on T
2
based Macs. Ignored when zero.
\item
\texttt
{
FirmwareFeatures
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
data
}
,
8
bytes
\\
...
...
Docs/Differences/Differences.pdf
浏览文件 @
4e5c22d5
无法预览此类型文件
Docs/Differences/Differences.tex
浏览文件 @
4e5c22d5
\documentclass
[]
{
article
}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Fri May 3 12:13:06 2019
%DIF ADD ../Configuration.tex
Wed May 15 01:27:22
2019
%DIF ADD ../Configuration.tex
Sun May 19 09:05:08
2019
\usepackage
{
lmodern
}
\usepackage
{
amssymb,amsmath
}
...
...
@@ -2657,15 +2657,22 @@ Apple ROM Version
\texttt
{
MacBook
-
Aluminum
}
.
\item
\texttt
{
PlatformFeature
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
integer
}
\\
\textbf
{
Default value
}
:
\texttt
{
0
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
integer
}
\
DIFaddbegin
\DIFadd
{
,
32
-
bit
}
\DIFaddend
\
\
\textbf
{
Default value
}
:
\texttt
{
\DIFdelbegin
\DIFdel
{
0
}
\DIFdelend
\DIFaddbegin
\DIFadd
{
0
xFFFFFFFF
}
\DIFaddend
}
\\
\textbf
{
SMBIOS
}
:
\texttt
{
APPLE
\_
SMBIOS
\_
TABLE
\_
TYPE
133
}
-
\texttt
{
PlatformFeature
}
\\
\textbf
{
Description
}
: Platform features bitmask. Refer to
\href
{
https:
//
github.com
/
acidanthera
/
EfiPkg
/
blob
/
master
/
Include
/
IndustryStandard
/
AppleFeatures.h
}{
AppleFeatures.h
}
for more details.
\item
\texttt
{
FirmwareFeatures
}
\\
for more details.
\DIFaddbegin
\DIFadd
{
Use
}
\texttt
{
\DIFadd
{
0
xFFFFFFFF
}}
\DIFadd
{
value to not provide this table.
}
\DIFaddend
\item
\DIFaddbegin
\texttt
{
\DIFadd
{
SmcVersion
}}
\\
\textbf
{
\DIFadd
{
Type
}}
\DIFadd
{
:
}
\texttt
{
\DIFadd
{
plist
\
data
}}
\DIFadd
{
,
16
bytes
}
\\
\textbf
{
\DIFadd
{
Default value
}}
\DIFadd
{
: All zero
}
\\
\textbf
{
\DIFadd
{
SMBIOS
}}
\DIFadd
{
:
}
\texttt
{
\DIFadd
{
APPLE
\_
SMBIOS
\_
TABLE
\_
TYPE
134
}}
\DIFadd
{
-
}
\texttt
{
\DIFadd
{
Version
}}
\\
\textbf
{
\DIFadd
{
Description
}}
\DIFadd
{
: ASCII string containing SMC version in upper case.
Missing on T
2
based Macs. Ignored when zero.
}
\item
\DIFaddend
\texttt
{
FirmwareFeatures
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
data
}
,
8
bytes
\\
\textbf
{
Default value
}
:
\texttt
{
0
}
\\
\textbf
{
SMBIOS
}
:
\texttt
{
APPLE
\_
SMBIOS
\_
TABLE
\_
TYPE
128
}
-
...
...
Docs/SampleFull.plist
浏览文件 @
4e5c22d5
...
...
@@ -573,6 +573,8 @@
<integer>
0
</integer>
<key>
MemoryFormFactor
</key>
<integer>
9
</integer>
<key>
SmcVersion
</key>
<data>
AAAAAAAAAAAAAAAAAAAAAA==
</data>
</dict>
<key>
UpdateDataHub
</key>
<true/>
...
...
Platform/OpenCore/OpenCorePlatform.c
浏览文件 @
4e5c22d5
...
...
@@ -28,6 +28,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <IndustryStandard/AppleSmBios.h>
#include <Guid/AppleVariable.h>
STATIC
...
...
@@ -168,6 +170,7 @@ OcPlatformUpdateSmbios (
EFI_STATUS
Status
;
OC_SMBIOS_DATA
Data
;
EFI_GUID
Uuid
;
UINT8
SmcVersion
[
APPLE_SMBIOS_SMC_VERSION_SIZE
];
ZeroMem
(
&
Data
,
sizeof
(
Data
));
...
...
@@ -275,7 +278,13 @@ OcPlatformUpdateSmbios (
Data
.
ProcessorType
=
&
Config
->
PlatformInfo
.
Smbios
.
ProcessorType
;
}
Data
.
PlatformFeature
=
Config
->
PlatformInfo
.
Smbios
.
PlatformFeature
;
if
(
Config
->
PlatformInfo
.
Smbios
.
PlatformFeature
!=
MAC_INFO_PLATFORM_FEATURE_MISSING
)
{
Data
.
PlatformFeature
=
&
Config
->
PlatformInfo
.
Smbios
.
PlatformFeature
;
}
if
(
Config
->
PlatformInfo
.
Smbios
.
SmcVersion
[
0
]
!=
'\0'
)
{
Data
.
SmcVersion
=
&
Config
->
PlatformInfo
.
Smbios
.
SmcVersion
[
0
];
}
}
else
{
//
// Automatic mode read data from Generic & MacInfo.
...
...
@@ -326,12 +335,14 @@ OcPlatformUpdateSmbios (
Data
.
FirmwareFeaturesMask
=
MacInfo
->
Smbios
.
FirmwareFeaturesMask
;
Data
.
ProcessorType
=
NULL
;
OC_INLINE_STATIC_ASSERT
(
MAC_INFO_PLATFORM_FEATURE_MISSING
==
PLATFORM_FEATURE_MISSING
,
"MacInfoPkg and OcSupportPkg have inconsistent data!"
);
if
(
MacInfo
->
Smbios
.
PlatformFeature
!=
MAC_INFO_PLATFORM_FEATURE_MISSING
)
{
Data
.
PlatformFeature
=
&
MacInfo
->
Smbios
.
PlatformFeature
;
}
Data
.
PlatformFeature
=
MacInfo
->
Smbios
.
PlatformFeature
;
if
(
MacInfo
->
DataHub
.
SmcRevision
!=
NULL
)
{
SmbiosGetSmcVersion
(
MacInfo
->
DataHub
.
SmcRevision
,
SmcVersion
);
Data
.
SmcVersion
=
SmcVersion
;
}
}
Status
=
CreateSmbios
(
&
Data
,
UpdateMode
,
CpuInfo
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录