From f6ec0c771a4a1a9b19835345eca7d06510f08fa8 Mon Sep 17 00:00:00 2001 From: jyao1 Date: Thu, 17 Nov 2011 09:35:20 +0000 Subject: In BootScriptSaver, put INFORMATION_OPCODE message to LockBox. In BootScriptExecutor, add code to display this INFORMATION_OPCODE message. Signed-off-by: jyao1 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12735 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/PiDxeS3BootScriptLib/BootScriptExecute.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c') diff --git a/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c b/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c index 5a93549271..766396d1d1 100644 --- a/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c +++ b/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c @@ -1,7 +1,7 @@ /** @file Interpret and execute the S3 data in S3 boot script. - Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions @@ -1199,8 +1199,18 @@ BootScriptExecuteInformation ( ) { - UINT8 Index; - for (Index = 0; Index < 10; Index++); + UINT32 Index; + EFI_BOOT_SCRIPT_INFORMATION Information; + + CopyMem ((VOID*)&Information, (VOID*)Script, sizeof(Information)); + + DEBUG ((EFI_D_INFO, "BootScriptExecuteInformation - 0x%08x\n", (UINTN)Information.Information)); + + DEBUG ((EFI_D_INFO, "BootScriptInformation: ")); + for (Index = 0; Index < Information.InformationLength; Index++) { + DEBUG ((EFI_D_INFO, "%02x ", *(UINT8 *)(UINTN)(Information.Information + Index))); + } + DEBUG ((EFI_D_INFO, "\n")); } /** calculate the mask value for 'and' and 'or' operation -- cgit v1.2.3