]>
Commit | Line | Data |
---|---|---|
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 | |
4 | Copyright (c) Microsoft Corporation\r | |
5 | SPDX-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 | |
20 | EFI_TPL\r | |
21 | EFIAPI\r | |
22 | UnitTestRaiseTpl (\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 | |
36 | VOID\r | |
37 | EFIAPI\r | |
38 | UnitTestRestoreTpl (\r | |
39 | IN EFI_TPL NewTpl\r | |
40 | )\r | |
41 | {\r | |
42 | return;\r | |
43 | }\r |