Do not load AHCI driver if the debugger is attached

This commit is contained in:
Alex
2023-04-21 18:54:31 +03:00
parent 5d0cc519ae
commit 1e7632657e

View File

@ -428,6 +428,10 @@ int DriverEntry(void *Data)
KAPI = (KernelAPI *)Data;
if (KAPI->Version.Major < 0 || KAPI->Version.Minor < 0 || KAPI->Version.Patch < 0)
return KERNEL_API_VERSION_NOT_SUPPORTED;
if (KAPI->Info.KernelDebug) /* FIXME: TCG doesn't like this driver. */
return NOT_AVAILABLE;
return OK;
}