Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
9f59339e
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,发现更多精彩内容 >>
提交
9f59339e
编写于
6月 24, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OcAfterCompatLib: Added 11.0 support for `AvoidRuntimeDefrag`
上级
bb12f5fe
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
39 addition
and
8 deletion
+39
-8
Changelog.md
Changelog.md
+1
-0
Include/Acidanthera/Library/OcBootManagementLib.h
Include/Acidanthera/Library/OcBootManagementLib.h
+9
-8
Library/OcAfterBootCompatLib/BootCompatInternal.h
Library/OcAfterBootCompatLib/BootCompatInternal.h
+4
-0
Library/OcAfterBootCompatLib/KernelSupport.c
Library/OcAfterBootCompatLib/KernelSupport.c
+23
-0
Library/OcBootManagementLib/BootArguments.c
Library/OcBootManagementLib/BootArguments.c
+2
-0
未找到文件。
Changelog.md
浏览文件 @
9f59339e
...
...
@@ -17,6 +17,7 @@ OpenCore Changelog
-
Fixed assertions caused by unaligned file path access in DEBUG builds
-
Renamed
`ConfigValidity`
utility to
`ocvalidate`
for consistency
-
Added
`GlobalConnect`
for APFS loading to workaround older firmware issues
-
Added 11.0 support for
`AvoidRuntimeDefrag`
Booter quirk
#### v0.5.9
-
Added full HiDPI support in OpenCanopy
...
...
Include/Acidanthera/Library/OcBootManagementLib.h
浏览文件 @
9f59339e
...
...
@@ -1035,14 +1035,15 @@ OcGetAppleBootLoadedImage (
by other libraries, so values are often pointers to original fields.
**/
typedef
struct
OC_BOOT_ARGUMENTS_
{
UINT32
*
MemoryMap
;
UINT32
*
MemoryMapSize
;
UINT32
*
MemoryMapDescriptorSize
;
UINT32
*
MemoryMapDescriptorVersion
;
CHAR8
*
CommandLine
;
UINT32
*
DeviceTreeP
;
UINT32
*
DeviceTreeLength
;
UINT32
*
CsrActiveConfig
;
UINT32
*
MemoryMap
;
UINT32
*
MemoryMapSize
;
UINT32
*
MemoryMapDescriptorSize
;
UINT32
*
MemoryMapDescriptorVersion
;
CHAR8
*
CommandLine
;
UINT32
*
DeviceTreeP
;
UINT32
*
DeviceTreeLength
;
UINT32
*
CsrActiveConfig
;
EFI_SYSTEM_TABLE
*
SystemTable
;
}
OC_BOOT_ARGUMENTS
;
/**
...
...
Library/OcAfterBootCompatLib/BootCompatInternal.h
浏览文件 @
9f59339e
...
...
@@ -256,6 +256,10 @@ typedef struct KERNEL_SUPPORT_STATE_ {
///
UINTN
SysTableRtAreaSize
;
///
/// Physical configuration table location.
///
EFI_CONFIGURATION_TABLE
*
ConfigurationTable
;
///
/// Virtual memory mapper context.
///
OC_VMEM_CONTEXT
VmContext
;
...
...
Library/OcAfterBootCompatLib/KernelSupport.c
浏览文件 @
9f59339e
...
...
@@ -381,6 +381,25 @@ AppleMapPrepareForBooting (
DescriptorSize
,
MemoryMap
);
//
// On native Macs due to EfiBoot defragmentation it is guaranteed that
// VADDR % BASE_1GB == PADDR. macOS 11 started to rely on this in
// acpi_count_enabled_logical_processors, which needs to access MADT (APIC)
// ACPI table, and does that through ConfigurationTables.
//
// The simplest approach is to just copy the table, so that it is accessible
// at both actual mapping and 1:1 defragmented mapping. This should be safe,
// as the memory for 1:1 defragmented mapping is reserved by EfiBoot in the
// first place and is otherwise stolen anyway.
//
if
(
BootCompat
->
KernelState
.
ConfigurationTable
!=
NULL
)
{
CopyMem
(
(
VOID
*
)
((
UINTN
)
BA
.
SystemTable
->
ConfigurationTable
&
(
BASE_1GB
-
1
)),
BootCompat
->
KernelState
.
ConfigurationTable
,
sizeof
(
*
BootCompat
->
KernelState
.
ConfigurationTable
)
*
BA
.
SystemTable
->
NumberOfTableEntries
);
}
}
}
...
...
@@ -545,6 +564,10 @@ AppleMapPrepareBooterState (
gST
,
gST
->
Hdr
.
HeaderSize
);
//
// Remember physical configuration table location.
//
BootCompat
->
KernelState
.
ConfigurationTable
=
gST
->
ConfigurationTable
;
}
//
...
...
Library/OcBootManagementLib/BootArguments.c
浏览文件 @
9f59339e
...
...
@@ -45,6 +45,7 @@ OcParseBootArgs (
Arguments
->
DeviceTreeP
=
&
BA1
->
deviceTreeP
;
Arguments
->
DeviceTreeLength
=
&
BA1
->
deviceTreeLength
;
Arguments
->
SystemTable
=
(
EFI_SYSTEM_TABLE
*
)(
UINTN
)
BA1
->
efiSystemTable
;
}
else
{
//
// Lion and newer
...
...
@@ -58,6 +59,7 @@ OcParseBootArgs (
Arguments
->
DeviceTreeP
=
&
BA2
->
deviceTreeP
;
Arguments
->
DeviceTreeLength
=
&
BA2
->
deviceTreeLength
;
Arguments
->
SystemTable
=
(
EFI_SYSTEM_TABLE
*
)(
UINTN
)
BA2
->
efiSystemTable
;
if
(
BA2
->
flags
&
kBootArgsFlagCSRActiveConfig
)
{
Arguments
->
CsrActiveConfig
=
&
BA2
->
csrActiveConfig
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录