X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkUnixPkg%2FSec%2FSecMain.c;h=04df255277a12a7765296f7d76ee1d00ef5b43c0;hp=b1394a2c0203d3073c9b2cdb13ec285628328d25;hb=76f407a69e668c8407ea736e2e3d9df07e046dc8;hpb=377fc2ae7125fec78f349c1ceda0cbeb53c988c2 diff --git a/EdkUnixPkg/Sec/SecMain.c b/EdkUnixPkg/Sec/SecMain.c index b1394a2c02..04df255277 100644 --- a/EdkUnixPkg/Sec/SecMain.c +++ b/EdkUnixPkg/Sec/SecMain.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2007 Intel Corporation. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -173,6 +173,9 @@ Returns: CHAR16 *MemorySizeStr; CHAR16 *FirmwareVolumesStr; + setbuf(stdout, 0); + setbuf(stderr, 0); + MemorySizeStr = (CHAR16 *)PcdGetPtr (PcdUnixMemorySizeForSecMain); FirmwareVolumesStr = (CHAR16 *)PcdGetPtr (PcdUnixFirmwareVolume); @@ -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