]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkNt32Pkg/Dxe/WinNtThunk/Bus/Uga/WinNtUgaScreen.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkNt32Pkg / Dxe / WinNtThunk / Bus / Uga / WinNtUgaScreen.c
index b6c1ce26b83e0068eedabd8afbf7cc21cf4ee6b5..ebaf0b3a8008915b205b983ce3303602eef6a509 100644 (file)
@@ -362,7 +362,7 @@ WinNtUgaBlt (
     // We would not want a timer based event (Cursor, ...) to come in while we are\r
     // doing this operation.\r
     //\r
-    OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+    OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
     for (SrcY = SourceY, DstY = DestinationY; DstY < (Height + DestinationY); SrcY++, DstY++) {\r
       Blt = (EFI_UGA_PIXEL *) ((UINT8 *) BltBuffer + (DstY * Delta) + DestinationX * sizeof (EFI_UGA_PIXEL));\r
@@ -386,7 +386,7 @@ WinNtUgaBlt (
     // We would not want a timer based event (Cursor, ...) to come in while we are\r
     // doing this operation.\r
     //\r
-    OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+    OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
     if (BltOperation == EfiUgaVideoFill) {\r
       FillPixel = BltBuffer;\r
@@ -851,8 +851,8 @@ Returns:
   // Register to be notified on exit boot services so we can destroy the window.\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                  TPL_CALLBACK,\r
                   KillNtUgaThread,\r
                   Private,\r
                   &mUgaScreenExitBootServicesEvent\r