]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.c
ArmPlatformPkg/LcdGraphicsOutputDxe: Call LcdShutdown() on ExitBootServices() if...
[mirror_edk2.git] / ArmPlatformPkg / Drivers / LcdGraphicsOutputDxe / LcdGraphicsOutputDxe.c
index 34a56b3d8dc6d4a9216d1850a0935b1bded228b6..f4165d00030602164c524ac752b190fc4b2ae221 100644 (file)
@@ -225,7 +225,13 @@ LcdGraphicsExitBootServicesEvent (
   IN VOID       *Context\r
   )\r
 {\r
-       //TODO: Implement me\r
+  // By default, this PCD is FALSE. But if a platform starts a predefined OS that\r
+  // does not use a framebuffer then we might want to disable the display controller\r
+  // to avoid to display corrupted information on the screen.\r
+  if (FeaturePcdGet (PcdGopDisableOnExitBootServices)) {\r
+    // Turn-off the Display controller\r
+    LcdShutdown ();\r
+  }\r
 }\r
 \r
 /***************************************\r