UefiBootServicesTableLibUnitTestTpl.c 863 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /** @file
  2. Implementation of Task Priority Level (TPL) related services in the UEFI Boot Services table for use in unit tests.
  3. Copyright (c) Microsoft Corporation
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include "UefiBootServicesTableLibUnitTest.h"
  7. /**
  8. Raise the task priority level to the new level.
  9. High level is implemented by disabling processor interrupts.
  10. @param NewTpl New task priority level
  11. @return The previous task priority level
  12. **/
  13. EFI_TPL
  14. EFIAPI
  15. UnitTestRaiseTpl (
  16. IN EFI_TPL NewTpl
  17. )
  18. {
  19. return TPL_APPLICATION;
  20. }
  21. /**
  22. Lowers the task priority to the previous value. If the new
  23. priority unmasks events at a higher priority, they are dispatched.
  24. @param NewTpl New, lower, task priority
  25. **/
  26. VOID
  27. EFIAPI
  28. UnitTestRestoreTpl (
  29. IN EFI_TPL NewTpl
  30. )
  31. {
  32. return;
  33. }