Skip to content

Commit

Permalink
Add KfLowerIrql shim (#215)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
Co-authored-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan-Jowett and Alan Jowett authored Sep 18, 2024
1 parent 8a3414f commit 07b8d70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/usersim/ke.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ USERSIM_API
void
KeLowerIrql(_In_ KIRQL new_irql);

USERSIM_API
void
KfLowerIrql(_In_ KIRQL new_irql);

USERSIM_API
_IRQL_requires_min_(DISPATCH_LEVEL) NTKERNELAPI LOGICAL KeShouldYieldProcessor(VOID);

Expand Down
5 changes: 5 additions & 0 deletions src/ke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ KeLowerIrql(_In_ KIRQL new_irql)
ASSERT(result);
}

void KfLowerIrql(_In_ KIRQL new_irql)
{
return KeLowerIrql(new_irql);
}

_IRQL_requires_min_(DISPATCH_LEVEL) NTKERNELAPI LOGICAL KeShouldYieldProcessor(VOID) { return false; }

#pragma endregion irqls
Expand Down

0 comments on commit 07b8d70

Please sign in to comment.