+++ /dev/null
-#/*++\r
-# \r
-# Copyright (c) 2001 Intel Corporation. All rights reserved.\r
-#\r
-# This software and associated documentation (if any) is furnished under \r
-# a license and may only be used or copied in accordance with the terms \r
-# of the license. Except as permitted by such license, no part of this \r
-# software or documentation may be reproduced, stored in a retrieval \r
-# system, or transmitted in any form or by any means without the express \r
-# written consent of Intel Corporation.\r
-# \r
-# Module Name:\r
-# \r
-# makefile\r
-# \r
-# Abstract:\r
-# \r
-# makefile for building the PeiRebase utility.\r
-# \r
-# Revision History\r
-# \r
-#--*/\r
-\r
-#\r
-# Make sure environmental variable EFI_SOURCE is set\r
-#\r
-!IFNDEF EFI_SOURCE\r
-!ERROR EFI_SOURCE environmental variable not set \r
-!ENDIF\r
-\r
-#\r
-# Do this if you want to compile from this directory\r
-#\r
-!IFNDEF TOOLCHAIN\r
-TOOLCHAIN = TOOLCHAIN_MSVC\r
-!ENDIF\r
-\r
-!INCLUDE PlatformTools.env\r
-\r
-#\r
-# Target specific information\r
-#\r
-\r
-TARGET_NAME = PeiRebase\r
-TARGET_SRC_DIR = $(TIANO_TOOLS_SOURCE)\$(TARGET_NAME)\r
-TARGET_EXE = $(TIANO_TOOLS_OUTPUT)\PeiRebase.exe\r
-TARGET_EXE_LIBS = $(TIANO_TOOLS_OUTPUT)\Common.lib\r
-\r
-#\r
-# Build targets\r
-#\r
-\r
-all: $(TARGET_EXE)\r
-\r
-OBJECTS = $(TIANO_TOOLS_OUTPUT)\PeiRebase.obj \r
-\r
-#\r
-# Compile each source file\r
-#\r
-$(TIANO_TOOLS_OUTPUT)\PeiRebase.obj : $(TARGET_SRC_DIR)\PeiRebaseExe.c $(INC_DEPS) $(TARGET_EXE_LIBS)\r
- $(CC) $(C_FLAGS) $(TARGET_SRC_DIR)\PeiRebaseExe.c /Fo$@\r
-\r
-#\r
-# Link the object files together\r
-#\r
-$(TARGET_EXE) : $(OBJECTS) $(TARGET_EXE_LIBS)\r
- @echo LINKING\r
- $(LINK) $(MSVS_LINK_LIBPATHS) $(L_FLAGS) $(LIBS) /out:$(TARGET_EXE) $(OBJECTS) $(TARGET_EXE_LIBS)\r
-\r
-clean:\r
- @if exist $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* del $(TIANO_TOOLS_OUTPUT)\$(TARGET_NAME).* > NUL\r
/*++\r
\r
-Copyright (c) 2005 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+Copyright (c) 1999-2006 Intel Corporation. All rights reserved\r
+This program and the accompanying materials are licensed and made available\r
+under the terms and conditions of the BSD License which accompanies this\r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
\r
Module Name:\r
- \r
+\r
SecApResetVectorFixup.h\r
\r
Abstract:\r
-/** @file\r
- Print Library.\r
-\r
+/*++\r
\r
Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+This program and the accompanying materials are licensed and made available\r
+under the terms and conditions of the BSD License which accompanies this\r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- Module Name: PrintLib.c\r
\r
-**/\r
+Module Name:\r
+\r
+ PrintLib.c\r
+\r
+Abstract:\r
+\r
+ Print Library.\r
+\r
+--*/\r
\r
#include <Common/UefiBaseTypes.h>\r
#include <Library/PrintLib.h>\r
\r
\r
/**\r
- VSPrint function to process format and place the results in Buffer. Since a \r
- VA_LIST is used this rountine allows the nesting of Vararg routines. Thus \r
+ VSPrint function to process format and place the results in Buffer. Since a\r
+ VA_LIST is used this rountine allows the nesting of Vararg routines. Thus\r
this is the main print working routine\r
\r
@param StartOfBuffer Unicode buffer to print the results of the parsing of Format into.\r
- \r
+\r
@param BufferSize Maximum number of characters to put into buffer. Zero means\r
no limit.\r
- \r
+\r
@param Flags Intial flags value. Can only have FORMAT_UNICODE and OUTPUT_UNICODE set\r
- \r
+\r
@param FormatString Unicode format string see file header for more details.\r
- \r
+\r
@param Marker Vararg list consumed by processing Format.\r
\r
@return Number of characters printed.\r
Format += BytesPerFormatCharacter;\r
FormatCharacter = (*Format | (*(Format + 1) << 8)) & FormatMask;\r
switch (FormatCharacter) {\r
- case '.': \r
- Flags |= PRECISION; \r
+ case '.':\r
+ Flags |= PRECISION;\r
break;\r
- case '-': \r
- Flags |= LEFT_JUSTIFY; \r
+ case '-':\r
+ Flags |= LEFT_JUSTIFY;\r
break;\r
- case '+': \r
- Flags |= PREFIX_SIGN; \r
+ case '+':\r
+ Flags |= PREFIX_SIGN;\r
break;\r
- case ' ': \r
- Flags |= PREFIX_BLANK; \r
+ case ' ':\r
+ Flags |= PREFIX_BLANK;\r
break;\r
- case ',': \r
- Flags |= COMMA_TYPE; \r
+ case ',':\r
+ Flags |= COMMA_TYPE;\r
break;\r
case 'L':\r
- case 'l': \r
- Flags |= LONG_TYPE; \r
+ case 'l':\r
+ Flags |= LONG_TYPE;\r
break;\r
case '*':\r
if ((Flags & PRECISION) == 0) {\r
Done = TRUE;\r
break;\r
}\r
- } \r
+ }\r
\r
//\r
// Limit the maximum field width to the remaining characters in the output buffer\r
} else {\r
BasePrintLibSPrint (\r
ValueBuffer,\r
- 0, \r
+ 0,\r
0,\r
"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",\r
TmpGuid->Data1,\r
break;\r
\r
case 't':\r
- TmpTime = VA_ARG (Marker, TIME *); \r
+ TmpTime = VA_ARG (Marker, TIME *);\r
if (TmpTime == NULL) {\r
ArgumentString = "<null time>";\r
} else {\r
// Null terminate the Unicode or ASCII string\r
//\r
Buffer = BasePrintLibFillBuffer (Buffer, 1, 0, BytesPerOutputCharacter);\r
- \r
+\r
return ((Buffer - OriginalBuffer) / BytesPerOutputCharacter);\r
}\r
\r
-/** @file\r
- Print Library worker functions.\r
-\r
+/*++\r
\r
Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+This program and the accompanying materials are licensed and made available\r
+under the terms and conditions of the BSD License which accompanies this\r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- Module Name: PrintLibInternal.c\r
\r
-**/\r
+Module Name:\r
+\r
+ PrintLibInternal.c\r
+\r
+Abstract:\r
+\r
+ Print Library worker functions.\r
+\r
+--*/\r
\r
#include <Common/UefiBaseTypes.h>\r
#include <Library/PrintLib.h>\r
Print worker function that prints a Value as a decimal number in Buffer.\r
\r
@param Buffer Location to place the Unicode or ASCII string of Value.\r
- \r
+\r
@param Value Value to convert to a Decimal or Hexidecimal string in Buffer.\r
- \r
+\r
@param Flags Flags to use in printing string, see file header for details.\r
- \r
+\r
@param Precision Minimum number of digits to return in the ASCII string\r
\r
@return Number of characters printed.\r
-/** @file\r
- Print Library.\r
+/*++\r
\r
Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+This program and the accompanying materials are licensed and made available\r
+under the terms and conditions of the BSD License which accompanies this\r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Module Name:\r
\r
- Module Name: PrintLibInternal.h\r
+ PrintLibInternal.h\r
+\r
+Abstract:\r
+\r
+ Print Library.\r
\r
-**/\r
+--*/\r
\r
\r
\r
UINTN\r
EFIAPI\r
BasePrintLibValueToString (\r
- IN OUT CHAR8 *Buffer, \r
- IN INT64 Value, \r
+ IN OUT CHAR8 *Buffer,\r
+ IN INT64 Value,\r
IN UINTN Radix\r
);\r
\r
-/** @file\r
- Unicode string primatives.\r
+/*++\r
\r
Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+This program and the accompanying materials are licensed and made available\r
+under the terms and conditions of the BSD License which accompanies this\r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- Module Name: String.c\r
\r
-**/\r
+Module Name:\r
+\r
+ String.c\r
+\r
+Abstract:\r
+\r
+ Unicode and ASCII string primatives.\r
+\r
+--*/\r
\r
#include <assert.h>\r
\r
/*++\r
\r
Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+This program and the accompanying materials are licensed and made available\r
+under the terms and conditions of the BSD License which accompanies this\r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
\r
Module Name:\r
\r
Returns:\r
\r
Zero - Function completed successfully.\r
- Non-zero - Function exited with errors. \r
+ Non-zero - Function exited with errors.\r
\r
--*/\r
{\r
/*++\r
\r
Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+This program and the accompanying materials are licensed and made available\r
+under the terms and conditions of the BSD License which accompanies this\r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
\r
Module Name:\r
+\r
ZeroDebugData.c\r
\r
Abstract:\r
+\r
Zero the Debug Data Fields of Portable Executable (PE) format file.\r
\r
--*/\r