mirror of
https://github.com/Fennix-Project/Drivers.git
synced 2025-05-28 15:34:29 +00:00
Do not load AHCI driver if the debugger is attached
This commit is contained in:
parent
5d0cc519ae
commit
1e7632657e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user