Clean up comment according to PI1.2c spec.
signed-off-by: jyao1
reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12690
6f19259b-4bc3-4df7-8a09-
765794883524
/** @file\r
Save the S3 data to S3 boot script. \r
\r
/** @file\r
Save the S3 data to S3 boot script. \r
\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
EFI_BOOT_SCRIPT_TABLE_HEADER TableHeader;\r
UINT32 LabelLength;\r
//\r
EFI_BOOT_SCRIPT_TABLE_HEADER TableHeader;\r
UINT32 LabelLength;\r
//\r
- // Assume Label is not NULL\r
+ if (Label == NULL) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
+ //\r
+ // Check empty Label\r
+ //\r
+ if (Label[0] == '\0') {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
/** @file\r
Implementation for S3 Boot Script Saver state driver.\r
\r
/** @file\r
Implementation for S3 Boot Script Saver state driver.\r
\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
@param Label Points to the label which will be inserted in the boot script table.\r
\r
@retval EFI_SUCCESS The label already exists or was inserted.\r
@param Label Points to the label which will be inserted in the boot script table.\r
\r
@retval EFI_SUCCESS The label already exists or was inserted.\r
- @retval EFI_INVALID_PARAMETER The Opcode is an invalid opcode value or the Position is not a valid position in the boot script table..\r
+ @retval EFI_INVALID_PARAMETER The Label is NULL or points to an empty string.\r
+ @retval EFI_INVALID_PARAMETER The Position is not a valid position in the boot script table.\r
\r
@retval EFI_SUCCESS The operation succeeded. \r
@retval EFI_INVALID_PARAMETER The Position1 or Position2 is not a valid position in the boot script table.\r
\r
@retval EFI_SUCCESS The operation succeeded. \r
@retval EFI_INVALID_PARAMETER The Position1 or Position2 is not a valid position in the boot script table.\r
+ @retval EFI_INVALID_PARAMETER The RelativePosition is NULL.\r
/** @file\r
Implementation for S3 SMM Boot Script Saver state driver.\r
\r
/** @file\r
Implementation for S3 SMM Boot Script Saver state driver.\r
\r
- Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
@param Label Points to the label which will be inserted in the boot script table.\r
\r
@retval EFI_SUCCESS The label already exists or was inserted.\r
@param Label Points to the label which will be inserted in the boot script table.\r
\r
@retval EFI_SUCCESS The label already exists or was inserted.\r
- @retval EFI_INVALID_PARAMETER The Opcode is an invalid opcode value or the Position is not a valid position in the boot script table..\r
+ @retval EFI_INVALID_PARAMETER The Label is NULL or points to an empty string.\r
+ @retval EFI_INVALID_PARAMETER The Position is not a valid position in the boot script table.\r
\r
@retval EFI_SUCCESS The operation succeeded. \r
@retval EFI_INVALID_PARAMETER The Position1 or Position2 is not a valid position in the boot script table.\r
\r
@retval EFI_SUCCESS The operation succeeded. \r
@retval EFI_INVALID_PARAMETER The Position1 or Position2 is not a valid position in the boot script table.\r
+ @retval EFI_INVALID_PARAMETER The RelativePosition is NULL.\r
to be replayed during an S3 resume.\r
This protocol is not required for all platforms.\r
\r
to be replayed during an S3 resume.\r
This protocol is not required for all platforms.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
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
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
\r
@retval EFI_SUCCESS The label already exists or was inserted.\r
@retval EFI_NOT_FOUND The label did not already exist and CreateifNotFound was FALSE.\r
\r
@retval EFI_SUCCESS The label already exists or was inserted.\r
@retval EFI_NOT_FOUND The label did not already exist and CreateifNotFound was FALSE.\r
- @retval EFI_INVALID_PARAMETER The Opcode is an invalid opcode value.\r
+ @retval EFI_INVALID_PARAMETER The Label is NULL or points to an empty string.\r
@retval EFI_INVALID_PARAMETER The Position is not a valid position in the boot script table.\r
@retval EFI_OUT_OF_RESOURCES There is insufficient memory to store the boot script.\r
**/\r
@retval EFI_INVALID_PARAMETER The Position is not a valid position in the boot script table.\r
@retval EFI_OUT_OF_RESOURCES There is insufficient memory to store the boot script.\r
**/\r
@param[in] Position2 The positions in the boot script table to compare.\r
@param[out] RelativePosition On return, points to the result of the comparison.\r
\r
@param[in] Position2 The positions in the boot script table to compare.\r
@param[out] RelativePosition On return, points to the result of the comparison.\r
\r
- @retval EFI_SUCCESS The label already exists or was inserted.\r
+ @retval EFI_SUCCESS The operation succeeded.\r
@retval EFI_INVALID_PARAMETER The Position1 or Position2 is not a valid position in the boot script table.\r
@retval EFI_INVALID_PARAMETER The Position1 or Position2 is not a valid position in the boot script table.\r
+ @retval EFI_INVALID_PARAMETER The RelativePosition is NULL.\r
**/\r
typedef\r
EFI_STATUS\r
**/\r
typedef\r
EFI_STATUS\r