Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
68104688
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,发现更多精彩内容 >>
提交
68104688
编写于
5月 14, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCore: Fix previous commit
上级
e1a2b992
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
17 deletion
+14
-17
Changelog.md
Changelog.md
+1
-1
Platform/OpenCore/OpenCoreDevProps.c
Platform/OpenCore/OpenCoreDevProps.c
+4
-16
Platform/OpenCore/OpenCoreNvram.c
Platform/OpenCore/OpenCoreNvram.c
+9
-0
未找到文件。
Changelog.md
浏览文件 @
68104688
...
...
@@ -28,7 +28,7 @@ OpenCore Changelog
-
Fixed assertions on log exhaustion causing boot failures
-
Fixed builtin text renderer failing to provide ConsoleControl
-
Fixed compatibility with blit-only GOP (e.g. OVMF Bochs)
-
Fixed ignoring
`#`
in DeviceProperty
`Add`
and
`Block`
-
Fixed ignoring
`#`
in DeviceProperty
and NVRAM
`Block`
#### v0.5.8
-
Fixed invalid CPU object reference in SSDT-PLUG
...
...
Platform/OpenCore/OpenCoreDevProps.c
浏览文件 @
68104688
...
...
@@ -51,12 +51,7 @@ OcLoadDevPropsSupport (
}
for
(
DeviceIndex
=
0
;
DeviceIndex
<
Config
->
DeviceProperties
.
Block
.
Count
;
++
DeviceIndex
)
{
AsciiDevicePath
=
OC_BLOB_GET
(
Config
->
DeviceProperties
.
Block
.
Keys
[
DeviceIndex
]);
if
(
AsciiDevicePath
[
0
]
==
'#'
)
{
DEBUG
((
DEBUG_INFO
,
"OC: Device property skip blocking %a
\n
"
,
AsciiDevicePath
));
continue
;
}
AsciiDevicePath
=
OC_BLOB_GET
(
Config
->
DeviceProperties
.
Block
.
Keys
[
DeviceIndex
]);
UnicodeDevicePath
=
AsciiStrCopyToUnicode
(
AsciiDevicePath
,
0
);
DevicePath
=
NULL
;
...
...
@@ -72,6 +67,9 @@ OcLoadDevPropsSupport (
for
(
PropertyIndex
=
0
;
PropertyIndex
<
Config
->
DeviceProperties
.
Block
.
Values
[
DeviceIndex
]
->
Count
;
++
PropertyIndex
)
{
AsciiProperty
=
OC_BLOB_GET
(
Config
->
DeviceProperties
.
Block
.
Values
[
DeviceIndex
]
->
Values
[
PropertyIndex
]);
//
// '#' is filtered in all keys, but for values we need to do it ourselves.
//
if
(
AsciiProperty
[
0
]
==
'#'
)
{
DEBUG
((
DEBUG_INFO
,
"OC: Device property skip blocking %a
\n
"
,
AsciiProperty
));
continue
;
...
...
@@ -107,11 +105,6 @@ OcLoadDevPropsSupport (
for
(
DeviceIndex
=
0
;
DeviceIndex
<
Config
->
DeviceProperties
.
Add
.
Count
;
++
DeviceIndex
)
{
PropertyMap
=
Config
->
DeviceProperties
.
Add
.
Values
[
DeviceIndex
];
AsciiDevicePath
=
OC_BLOB_GET
(
Config
->
DeviceProperties
.
Add
.
Keys
[
DeviceIndex
]);
if
(
AsciiDevicePath
[
0
]
==
'#'
)
{
DEBUG
((
DEBUG_INFO
,
"OC: Device property skip adding %a
\n
"
,
AsciiDevicePath
));
continue
;
}
UnicodeDevicePath
=
AsciiStrCopyToUnicode
(
AsciiDevicePath
,
0
);
DevicePath
=
NULL
;
...
...
@@ -127,11 +120,6 @@ OcLoadDevPropsSupport (
for
(
PropertyIndex
=
0
;
PropertyIndex
<
PropertyMap
->
Count
;
++
PropertyIndex
)
{
AsciiProperty
=
OC_BLOB_GET
(
PropertyMap
->
Keys
[
PropertyIndex
]);
if
(
AsciiProperty
[
0
]
==
'#'
)
{
DEBUG
((
DEBUG_INFO
,
"OC: Device property skip adding %a
\n
"
,
AsciiProperty
));
continue
;
}
UnicodeProperty
=
AsciiStrCopyToUnicode
(
AsciiProperty
,
0
);
if
(
UnicodeProperty
==
NULL
)
{
DEBUG
((
DEBUG_WARN
,
"OC: Failed to convert %a property
\n
"
,
AsciiProperty
));
...
...
Platform/OpenCore/OpenCoreNvram.c
浏览文件 @
68104688
...
...
@@ -381,6 +381,15 @@ OcBlockNvram (
for
(
BlockVariableIndex
=
0
;
BlockVariableIndex
<
Config
->
Nvram
.
Block
.
Values
[
BlockGuidIndex
]
->
Count
;
++
BlockVariableIndex
)
{
AsciiVariableName
=
OC_BLOB_GET
(
Config
->
Nvram
.
Block
.
Values
[
BlockGuidIndex
]
->
Values
[
BlockVariableIndex
]);
//
// '#' is filtered in all keys, but for values we need to do it ourselves.
//
if
(
AsciiVariableName
[
0
]
==
'#'
)
{
DEBUG
((
DEBUG_INFO
,
"OC: Variable skip blocking %a
\n
"
,
AsciiVariableName
));
continue
;
}
UnicodeVariableName
=
AsciiStrCopyToUnicode
(
AsciiVariableName
,
0
);
if
(
UnicodeVariableName
==
NULL
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录