Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build breaks when linking with usersim againt code built against cxplat_kernel #221

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

Alan-Jowett
Copy link
Member

This pull request includes changes to the USERSIM_API to add new functions and improve error handling in ke.cpp. The most important changes include adding new API functions for querying processor counts and refining error handling in the KeSetSystemGroupAffinityThread function.

Additions to USERSIM_API:

  • Added KeQueryActiveProcessorCount and KeQueryActiveProcessorCountEx functions to inc/usersim/ke.h to provide API access for querying active processor counts.

Implementation of new functions:

  • Implemented KeQueryActiveProcessorCount and KeQueryActiveProcessorCountEx functions in src/ke.cpp to call the corresponding maximum processor count functions.

Error handling improvements:

  • Improved error handling in the KeSetSystemGroupAffinityThread function by conditionally using UNREFERENCED_PARAMETER for the error variable in non-debug builds, and asserting error in debug builds.

@Alan-Jowett Alan-Jowett merged commit 88a336d into microsoft:main Oct 28, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants