Merge pull request #505 from LukeUsher/KeLowerIrql
Add partial implementation of KeLowerIrql
This commit is contained in:
commit
8090d040dd
|
@ -320,7 +320,20 @@ XBSYSAPI EXPORTNUM(161) xboxkrnl::VOID FASTCALL xboxkrnl::KfLowerIrql
|
||||||
{
|
{
|
||||||
LOG_FUNC_ONE_ARG(NewIrql);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ******************************************************************
|
// ******************************************************************
|
||||||
|
|
Loading…
Reference in New Issue