mirror of
https://github.com/Fennix-Project/Drivers.git
synced 2025-07-10 22:59:25 +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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user