diff --git a/Changelog.md b/Changelog.md
index 43bf91a15cb67ec2730ddf2e29ed2e606f9e1e7a..c7aebff4a837db84c7dafc77c3dbf181388c6b76 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -10,6 +10,7 @@ OpenCore Changelog
- Added `Misc` -> `Tools` section to add third-party tools
- Added `Kernel` -> `Emulate` section for CPUID patches
- Added `CustomSMBIOSGuid` quirk for Custom SMBIOS update mode
+- Added `PanicNoKextDump` quirk to avoid kext dump in panics
#### v0.0.2
- Documentation improvements (see Differences.pdf)
diff --git a/Docs/Configuration.pdf b/Docs/Configuration.pdf
index 82692271c5994420fd009925efe7752b39dee672..52f6512d5c15f573f4d923dde732ae67a628ef3d 100644
Binary files a/Docs/Configuration.pdf and b/Docs/Configuration.pdf differ
diff --git a/Docs/Configuration.tex b/Docs/Configuration.tex
index 42b5687905ff24dfb42ee8455c54e7a2c1d0cb9b..e52204cfd3ce32a71e1a89681696450060b67852 100755
--- a/Docs/Configuration.tex
+++ b/Docs/Configuration.tex
@@ -1258,6 +1258,13 @@ blocking.
\emph{Note}: This option should avoided whenever possible. Modern firmwares
usually have compatible AHCI controllers.
+\item
+ \texttt{PanicNoKextDump}\\
+ \textbf{Type}: \texttt{plist\ boolean}\\
+ \textbf{Default value}: \texttt{false}\\
+ \textbf{Description}: Prevent kernel from printing kext dump in the panic
+ log preventing from observing panic details. Affects 10.13 and above.
+
\item
\texttt{ThirdPartyTrim}\\
\textbf{Type}: \texttt{plist\ boolean}\\
@@ -1947,6 +1954,7 @@ troubleshooting:
\item \texttt{keepsyms=1}
\item \texttt{kextlog=VALUE}
\item \texttt{nvda\_drv=1}
+ \item \texttt{lapic\_dont\_panic=1}
\item \texttt{slide=VALUE}
\item \texttt{-nehalem\_error\_disable}
\item \texttt{-no\_compat\_check}
diff --git a/Docs/Differences/Differences.pdf b/Docs/Differences/Differences.pdf
index 388928155f1a0552597ae8c2a3219fe9a0f59a42..7de8d3e7fa58a70cfc1b2eb5a83be63e41db6cc1 100644
Binary files a/Docs/Differences/Differences.pdf and b/Docs/Differences/Differences.pdf differ
diff --git a/Docs/Differences/Differences.tex b/Docs/Differences/Differences.tex
index 086afc79f6f622bee8d0786885bcd5ee77c1cb77..4eb3463c895121c8a18c27975b20cf8d96c9b492 100644
--- a/Docs/Differences/Differences.tex
+++ b/Docs/Differences/Differences.tex
@@ -1,7 +1,7 @@
\documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Fri May 24 02:34:39 2019
-%DIF ADD ../Configuration.tex Fri Jun 7 21:56:18 2019
+%DIF ADD ../Configuration.tex Fri Jun 7 23:49:45 2019
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
@@ -1357,7 +1357,15 @@ blocking.
usually have compatible AHCI controllers.
\item
- \texttt{ThirdPartyTrim}\\
+ \DIFaddbegin \texttt{\DIFadd{PanicNoKextDump}}\\
+ \textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ boolean}}\\
+ \textbf{\DIFadd{Default value}}\DIFadd{: }\texttt{\DIFadd{false}}\\
+ \textbf{\DIFadd{Description}}\DIFadd{: Prevent kernel from printing kext dump in the panic
+ log preventing from observing panic details. Affects 10.13 and above.
+}
+
+\item
+ \DIFaddend \texttt{ThirdPartyTrim}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Default value}: \texttt{false}\\
\textbf{Description}: Patch IOAHCIFamily.kext to force TRIM command support
@@ -2051,7 +2059,8 @@ troubleshooting:
\item \texttt{keepsyms=1}
\item \texttt{kextlog=VALUE}
\item \texttt{nvda\_drv=1}
- \item \texttt{slide=VALUE}
+ \item \DIFaddbegin \texttt{\DIFadd{lapic\_dont\_panic=1}}
+ \item \DIFaddend \texttt{slide=VALUE}
\item \texttt{-nehalem\_error\_disable}
\item \texttt{-no\_compat\_check}
\item \texttt{-s}
diff --git a/Docs/Sample.plist b/Docs/Sample.plist
index 05f195ad2b48354573bcdac9b29cd87b0c2fe7d0..34f8eb6483abadc96e57a179f070fb6f92080598 100644
--- a/Docs/Sample.plist
+++ b/Docs/Sample.plist
@@ -360,10 +360,14 @@
AppleXcpmCfgLock
+ CustomSMBIOSGuid
+
DisableIoMapper
ExternalDiskIcons
+ PanicNoKextDump
+
ThirdPartyTrim
XhciPortLimit
diff --git a/Docs/SampleFull.plist b/Docs/SampleFull.plist
index 850280198b9ad5268d7a1886590c29c891b9147d..9b2f65416d812bff34b0767742368c4dfd4a66cf 100644
--- a/Docs/SampleFull.plist
+++ b/Docs/SampleFull.plist
@@ -360,10 +360,14 @@
AppleXcpmCfgLock
+ CustomSMBIOSGuid
+
DisableIoMapper
ExternalDiskIcons
+ PanicNoKextDump
+
ThirdPartyTrim
XhciPortLimit
diff --git a/Platform/OpenCore/OpenCoreKernel.c b/Platform/OpenCore/OpenCoreKernel.c
index 1886ddcc2b42015930c21ea9a0eee6a351316909..6f798a96f25576865146bec00906f41728503acd 100644
--- a/Platform/OpenCore/OpenCoreKernel.c
+++ b/Platform/OpenCore/OpenCoreKernel.c
@@ -315,6 +315,10 @@ OcKernelApplyPatches (
PatchAppleXcpmCfgLock (&Patcher);
}
+ if (Config->Kernel.Quirks.PanicNoKextDump) {
+ PatchPanicKextDump (&Patcher);
+ }
+
if (Config->Kernel.Emulate.Cpuid1Data[0] != 0
|| Config->Kernel.Emulate.Cpuid1Data[1] != 0
|| Config->Kernel.Emulate.Cpuid1Data[2] != 0