Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
a9af4abd
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,发现更多精彩内容 >>
提交
a9af4abd
编写于
10月 24, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OcBootManagementLib: Fixed `ScanPolicy` NVMe handling on MacPro5,1
closes acidanthera/bugtracker#1234
上级
a5267aab
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
5 deletion
+12
-5
Changelog.md
Changelog.md
+1
-0
Include/Acidanthera/Library/OcDevicePathLib.h
Include/Acidanthera/Library/OcDevicePathLib.h
+8
-0
Library/OcBootManagementLib/PolicyManagement.c
Library/OcBootManagementLib/PolicyManagement.c
+1
-0
Library/OcDevicePathLib/OcDevicePathLib.c
Library/OcDevicePathLib/OcDevicePathLib.c
+2
-5
未找到文件。
Changelog.md
浏览文件 @
a9af4abd
...
@@ -17,6 +17,7 @@ OpenCore Changelog
...
@@ -17,6 +17,7 @@ OpenCore Changelog
-
Fixed intermittent 32-bit prelinking failures caused by improper Mach-O expansion
-
Fixed intermittent 32-bit prelinking failures caused by improper Mach-O expansion
-
Fixed failures in cacheless injection dependency resolution
-
Fixed failures in cacheless injection dependency resolution
-
Fixed detection issues with older Atom CPUs
-
Fixed detection issues with older Atom CPUs
-
Fixed
`ScanPolicy`
NVMe handling on MacPro5,1
#### v0.6.2
#### v0.6.2
-
Updated builtin firmware versions for SMBIOS and the rest
-
Updated builtin firmware versions for SMBIOS and the rest
...
...
Include/Acidanthera/Library/OcDevicePathLib.h
浏览文件 @
a9af4abd
...
@@ -15,6 +15,14 @@
...
@@ -15,6 +15,14 @@
#ifndef OC_DEVICE_PATH_LIB_H
#ifndef OC_DEVICE_PATH_LIB_H
#define OC_DEVICE_PATH_LIB_H
#define OC_DEVICE_PATH_LIB_H
/**
Apple MacPro5,1 includes NVMe driver, however, it contains a typo in MSG_SASEX_DP.
Instead of 0x16 aka 22 (SasEx) it uses 0x22 aka 34 (Unspecified).
Here we replace it with the "right" value.
Reference: https://forums.macrumors.com/posts/28169441.
**/
#define MSG_APPLE_NVME_NAMESPACE_DP 0x22
/**
/**
Append file name to device path.
Append file name to device path.
...
...
Library/OcBootManagementLib/PolicyManagement.c
浏览文件 @
a9af4abd
...
@@ -80,6 +80,7 @@ OcGetDevicePolicyType (
...
@@ -80,6 +80,7 @@ OcGetDevicePolicyType (
return
OC_SCAN_ALLOW_DEVICE_SASEX
;
return
OC_SCAN_ALLOW_DEVICE_SASEX
;
case
MSG_SCSI_DP
:
case
MSG_SCSI_DP
:
return
OC_SCAN_ALLOW_DEVICE_SCSI
;
return
OC_SCAN_ALLOW_DEVICE_SCSI
;
case
MSG_APPLE_NVME_NAMESPACE_DP
:
case
MSG_NVME_NAMESPACE_DP
:
case
MSG_NVME_NAMESPACE_DP
:
return
OC_SCAN_ALLOW_DEVICE_NVME
;
return
OC_SCAN_ALLOW_DEVICE_NVME
;
case
MSG_ATAPI_DP
:
case
MSG_ATAPI_DP
:
...
...
Library/OcDevicePathLib/OcDevicePathLib.c
浏览文件 @
a9af4abd
...
@@ -484,16 +484,13 @@ OcFixAppleBootDevicePathNode (
...
@@ -484,16 +484,13 @@ OcFixAppleBootDevicePathNode (
case
MSG_NVME_NAMESPACE_DP
:
case
MSG_NVME_NAMESPACE_DP
:
//
//
// Apple MacPro5,1 includes NVMe driver, however, it contains a typo in MSG_SASEX_DP.
// Workaround for MacPro5,1 using custom NVMe type.
// Instead of 0x16 aka 22 (SasEx) it uses 0x22 aka 34 (Unspecified).
// Here we replace it with the "right" value.
// Reference: https://forums.macrumors.com/posts/28169441.
//
//
if
(
RestoreContext
!=
NULL
)
{
if
(
RestoreContext
!=
NULL
)
{
RestoreContext
->
Types
.
SasExNvme
.
SubType
=
Node
.
DevPath
->
SubType
;
RestoreContext
->
Types
.
SasExNvme
.
SubType
=
Node
.
DevPath
->
SubType
;
}
}
Node
.
NvmeNamespace
->
Header
.
SubType
=
0x22
;
Node
.
NvmeNamespace
->
Header
.
SubType
=
MSG_APPLE_NVME_NAMESPACE_DP
;
return
1
;
return
1
;
default:
default:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录