]> git.proxmox.com Git - mirror_edk2.git/blame - PrmPkg/Test/UnitTest/Library/UefiBootServicesTableLibUnitTest/UefiBootServicesTableLibUnitTestTpl.c
PrmPkg/Test/UnitTest/Library: Add initial UEFI Boot Services test lib
[mirror_edk2.git] / PrmPkg / Test / UnitTest / Library / UefiBootServicesTableLibUnitTest / UefiBootServicesTableLibUnitTestTpl.c
CommitLineData
3599f547
MK
1/** @file\r
2 Implementation of Task Priority Level (TPL) related services in the UEFI Boot Services table for use in unit tests.\r
3\r
4Copyright (c) Microsoft Corporation\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#include "UefiBootServicesTableLibUnitTest.h"\r
10\r
11/**\r
12 Raise the task priority level to the new level.\r
13 High level is implemented by disabling processor interrupts.\r
14\r
15 @param NewTpl New task priority level\r
16\r
17 @return The previous task priority level\r
18\r
19**/\r
20EFI_TPL\r
21EFIAPI\r
22UnitTestRaiseTpl (\r
23 IN EFI_TPL NewTpl\r
24 )\r
25{\r
26 return TPL_APPLICATION;\r
27}\r
28\r
29/**\r
30 Lowers the task priority to the previous value. If the new\r
31 priority unmasks events at a higher priority, they are dispatched.\r
32\r
33 @param NewTpl New, lower, task priority\r
34\r
35**/\r
36VOID\r
37EFIAPI\r
38UnitTestRestoreTpl (\r
39 IN EFI_TPL NewTpl\r
40 )\r
41{\r
42 return;\r
43}\r