]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Sec/SecMain.c
Remove some unnecessary #if/#ifdef from some header files.
[mirror_edk2.git] / EdkUnixPkg / Sec / SecMain.c
index b1394a2c0203d3073c9b2cdb13ec285628328d25..04df255277a12a7765296f7d76ee1d00ef5b43c0 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006 - 2007 Intel Corporation.\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -173,6 +173,9 @@ Returns:
   CHAR16                *MemorySizeStr;\r
   CHAR16                *FirmwareVolumesStr;\r
 \r
+  setbuf(stdout, 0);\r
+  setbuf(stderr, 0);\r
+\r
   MemorySizeStr      = (CHAR16 *)PcdGetPtr (PcdUnixMemorySizeForSecMain);\r
   FirmwareVolumesStr = (CHAR16 *)PcdGetPtr (PcdUnixFirmwareVolume);\r
 \r
@@ -313,10 +316,10 @@ MapMemory (
   INTN   prot,
   INTN   flags)
 {
-  STATIC UINTN base = 0x40000000;
-  CONST UINTN align = (1 << 24);
-  VOID *res;
-  BOOLEAN isAligned = 0;
+  STATIC UINTN base  = 0x40000000;
+  CONST UINTN  align = (1 << 24);
+  VOID         *res  = NULL;
+  BOOLEAN      isAligned = 0;
 
   //
   // Try to get an aligned block somewhere in the address space of this