Merge pull request #505 from LukeUsher/KeLowerIrql

Add partial implementation of KeLowerIrql
This commit is contained in:
PatrickvL 2017-07-18 14:16:06 +02:00 committed by GitHub
commit 8090d040dd
1 changed files with 14 additions and 1 deletions

View File

@ -320,7 +320,20 @@ XBSYSAPI EXPORTNUM(161) xboxkrnl::VOID FASTCALL xboxkrnl::KfLowerIrql
{
LOG_FUNC_ONE_ARG(NewIrql);
LOG_UNIMPLEMENTED();
KPCR* Pcr = KeGetPcr();
if (NewIrql > Pcr->Irql) {
// TODO: Enable this after KeBugCheck is implemented
//KeBugCheck(IRQL_NOT_LESS_OR_EQUAL);
// for (;;);
CxbxKrnlCleanup("IRQL_NOT_LESS_OR_EQUAL");
}
Pcr->Irql = NewIrql;
// TODO: Dispatch pending interrupts
LOG_INCOMPLETE();
}
// ******************************************************************