TianoCore EDK2 master
Loading...
Searching...
No Matches
UnitTestUefiBootServicesTableLibTpl.c File Reference

Go to the source code of this file.

Functions

EFI_TPL EFIAPI UnitTestRaiseTpl (IN EFI_TPL NewTpl)
 
VOID EFIAPI UnitTestRestoreTpl (IN EFI_TPL NewTpl)
 

Detailed Description

Implementation of Task Priority Level (TPL) related services in the UEFI Boot Services table for use in unit tests.

Copyright (c) Microsoft Corporation SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file UnitTestUefiBootServicesTableLibTpl.c.

Function Documentation

◆ UnitTestRaiseTpl()

EFI_TPL EFIAPI UnitTestRaiseTpl ( IN EFI_TPL  NewTpl)

Raise the task priority level to the new level. High level is implemented by disabling processor interrupts.

Parameters
NewTplNew task priority level
Returns
The previous task priority level

Definition at line 22 of file UnitTestUefiBootServicesTableLibTpl.c.

◆ UnitTestRestoreTpl()

VOID EFIAPI UnitTestRestoreTpl ( IN EFI_TPL  NewTpl)

Lowers the task priority to the previous value. If the new priority unmasks events at a higher priority, they are dispatched.

Parameters
NewTplNew, lower, task priority

Definition at line 38 of file UnitTestUefiBootServicesTableLibTpl.c.