mirror of
https://github.com/Fennix-Project/Drivers.git
synced 2025-07-16 09:31:46 +00:00
Do not load AHCI driver if the debugger is attached
This commit is contained in:
@@ -428,6 +428,10 @@ int DriverEntry(void *Data)
|
|||||||
KAPI = (KernelAPI *)Data;
|
KAPI = (KernelAPI *)Data;
|
||||||
if (KAPI->Version.Major < 0 || KAPI->Version.Minor < 0 || KAPI->Version.Patch < 0)
|
if (KAPI->Version.Major < 0 || KAPI->Version.Minor < 0 || KAPI->Version.Patch < 0)
|
||||||
return KERNEL_API_VERSION_NOT_SUPPORTED;
|
return KERNEL_API_VERSION_NOT_SUPPORTED;
|
||||||
|
|
||||||
|
if (KAPI->Info.KernelDebug) /* FIXME: TCG doesn't like this driver. */
|
||||||
|
return NOT_AVAILABLE;
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user