提交 f654218e 编写于 作者: V vit9696

OpenCorePlatform: Revert ReplaceableMemory as it does not work

上级 11bf683c
...@@ -8,7 +8,7 @@ OpenCore Changelog ...@@ -8,7 +8,7 @@ OpenCore Changelog
- Fixed microcode reading on Intel CPUs - Fixed microcode reading on Intel CPUs
- Fixed SMBIOS Type4 External Clock values - Fixed SMBIOS Type4 External Clock values
- Improved Windows compatibility on some setups (acidanthera/bugtracker#614) - Improved Windows compatibility on some setups (acidanthera/bugtracker#614)
- Added `SupportsCsm` and `ReplaceableMemory` options in `PlatformInfo/Generic` - Added `SupportsCsm` and option in `PlatformInfo/Generic`
#### v0.5.3 #### v0.5.3
- Update builtin firmware versions - Update builtin firmware versions
......
...@@ -2943,14 +2943,6 @@ be used. Version with macOS specific enhancements can be downloaded from ...@@ -2943,14 +2943,6 @@ be used. Version with macOS specific enhancements can be downloaded from
\subsection{Generic Properties}\label{platforminfogeneric} \subsection{Generic Properties}\label{platforminfogeneric}
\begin{enumerate} \begin{enumerate}
\item
\texttt{ReplaceableMemory}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Forces replaceable memory bit in \texttt{PlatformFeature}.
Resetting soldered bit in \texttt{PlatformFeature} enables memory tab in
\texttt{About My Mac}.
\item \item
\texttt{SpoofVendor}\\ \texttt{SpoofVendor}\\
\textbf{Type}: \texttt{plist\ boolean}\\ \textbf{Type}: \texttt{plist\ boolean}\\
......
\documentclass[]{article} \documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE %DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Tue Dec 10 15:40:50 2019 %DIF DEL PreviousConfiguration.tex Tue Dec 10 15:40:50 2019
%DIF ADD ../Configuration.tex Sun Jan 5 00:00:22 2020 %DIF ADD ../Configuration.tex Sun Jan 5 01:16:21 2020
\usepackage{lmodern} \usepackage{lmodern}
\usepackage{amssymb,amsmath} \usepackage{amssymb,amsmath}
...@@ -3012,16 +3012,7 @@ be used. Version with macOS specific enhancements can be downloaded from ...@@ -3012,16 +3012,7 @@ be used. Version with macOS specific enhancements can be downloaded from
\begin{enumerate} \begin{enumerate}
\item \item
\DIFaddbegin \texttt{\DIFadd{ReplaceableMemory}}\\ \texttt{SpoofVendor}\\
\textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ boolean}}\\
\textbf{\DIFadd{Failsafe}}\DIFadd{: }\texttt{\DIFadd{false}}\\
\textbf{\DIFadd{Description}}\DIFadd{: Forces replaceable memory bit in }\texttt{\DIFadd{PlatformFeature}}\DIFadd{.
}
\DIFadd{Resetting soldered bit in }\texttt{\DIFadd{PlatformFeature}} \DIFadd{enables memory tab in
}\texttt{\DIFadd{About My Mac}}\DIFadd{.
}\item
\DIFaddend \texttt{SpoofVendor}\\
\textbf{Type}: \texttt{plist\ boolean}\\ \textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\ \textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Sets SMBIOS vendor fields to \texttt{Acidanthera}. \textbf{Description}: Sets SMBIOS vendor fields to \texttt{Acidanthera}.
......
...@@ -709,12 +709,10 @@ ...@@ -709,12 +709,10 @@
<string>M000000000001</string> <string>M000000000001</string>
<key>ROM</key> <key>ROM</key>
<data>ESIzAAAA</data> <data>ESIzAAAA</data>
<key>ReplaceableMemory</key>
<true/>
<key>SpoofVendor</key> <key>SpoofVendor</key>
<true/> <true/>
<key>SupportsCsm</key> <key>SupportsCsm</key>
<true/> <false/>
<key>SystemProductName</key> <key>SystemProductName</key>
<string>MacPro5,1</string> <string>MacPro5,1</string>
<key>SystemSerialNumber</key> <key>SystemSerialNumber</key>
......
...@@ -740,12 +740,10 @@ ...@@ -740,12 +740,10 @@
<string>M000000000001</string> <string>M000000000001</string>
<key>ROM</key> <key>ROM</key>
<data>ESIzAAAA</data> <data>ESIzAAAA</data>
<key>ReplaceableMemory</key>
<true/>
<key>SpoofVendor</key> <key>SpoofVendor</key>
<true/> <true/>
<key>SupportsCsm</key> <key>SupportsCsm</key>
<true/> <false/>
<key>SystemProductName</key> <key>SystemProductName</key>
<string>MacPro5,1</string> <string>MacPro5,1</string>
<key>SystemSerialNumber</key> <key>SystemSerialNumber</key>
......
...@@ -175,7 +175,6 @@ OcPlatformUpdateSmbios ( ...@@ -175,7 +175,6 @@ OcPlatformUpdateSmbios (
OC_SMBIOS_DATA Data; OC_SMBIOS_DATA Data;
EFI_GUID Uuid; EFI_GUID Uuid;
UINT8 SmcVersion[APPLE_SMBIOS_SMC_VERSION_SIZE]; UINT8 SmcVersion[APPLE_SMBIOS_SMC_VERSION_SIZE];
UINT32 PlatformFeature;
ZeroMem (&Data, sizeof (Data)); ZeroMem (&Data, sizeof (Data));
...@@ -353,17 +352,7 @@ OcPlatformUpdateSmbios ( ...@@ -353,17 +352,7 @@ OcPlatformUpdateSmbios (
} }
Data.ProcessorType = NULL; Data.ProcessorType = NULL;
Data.PlatformFeature = MacInfo->Smbios.PlatformFeature;
if (MacInfo->Smbios.PlatformFeature != NULL) {
PlatformFeature = *MacInfo->Smbios.PlatformFeature;
if (Config->PlatformInfo.Generic.ReplaceableMemory) {
PlatformFeature &= ~PT_FEATURE_HAS_SOLDERED_SYSTEM_MEMORY;
}
} else {
PlatformFeature = 0;
}
Data.PlatformFeature = &PlatformFeature;
if (MacInfo->DataHub.SmcRevision != NULL) { if (MacInfo->DataHub.SmcRevision != NULL) {
SmbiosGetSmcVersion (MacInfo->DataHub.SmcRevision, SmcVersion); SmbiosGetSmcVersion (MacInfo->DataHub.SmcRevision, SmcVersion);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册