Revision: 17166
          http://sourceforge.net/p/edk2/code/17166
Author:   lzeng14
Date:     2015-04-13 01:56:57 +0000 (Mon, 13 Apr 2015)
Log Message:
-----------
MdeModulePkg PiDxeS3BootScriptLib: Initialize the 
EFI_BOOT_SCRIPT_TABLE_HEADER.Version.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
    
trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
    trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c

Modified: 
trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c    
2015-04-13 01:39:29 UTC (rev 17165)
+++ trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c    
2015-04-13 01:56:57 UTC (rev 17166)
@@ -1,7 +1,7 @@
 /** @file
   Interpret and execute the S3 data in S3 boot script. 
 
-  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions
@@ -1643,6 +1643,7 @@
   AndMask       = 0;
   OrMask        = 0;
 
+  DEBUG ((EFI_D_INFO, "TableHeader.Version - 0x%04x\n", 
(UINTN)TableHeader.Version));
   DEBUG ((EFI_D_INFO, "TableHeader.TableLength - 0x%08x\n", 
(UINTN)TableLength));
 
   while ((UINTN) Script < (UINTN) (StartAddress + TableLength)) {

Modified: 
trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
===================================================================
--- 
trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h 
    2015-04-13 01:39:29 UTC (rev 17165)
+++ 
trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h 
    2015-04-13 01:56:57 UTC (rev 17166)
@@ -2,7 +2,7 @@
   This file declares the internal Framework Boot Script format used by
   the PI implementation of Script Saver and Executor.
 
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions
@@ -183,4 +183,6 @@
 
 #define BOOT_SCRIPT_NODE_MAX_LENGTH   1024
 
+#define BOOT_SCRIPT_TABLE_VERSION     0x0001
+
 #endif

Modified: trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c       
2015-04-13 01:39:29 UTC (rev 17165)
+++ trunk/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c       
2015-04-13 01:56:57 UTC (rev 17166)
@@ -1,7 +1,7 @@
 /** @file
   Save the S3 data to S3 boot script. 
  
-  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions
@@ -423,6 +423,7 @@
      ScriptTableInfo              = 
(EFI_BOOT_SCRIPT_TABLE_HEADER*)(UINTN)S3TableBase;
      ScriptTableInfo->OpCode      = S3_BOOT_SCRIPT_LIB_TABLE_OPCODE;
      ScriptTableInfo->Length      = (UINT8) sizeof 
(EFI_BOOT_SCRIPT_TABLE_HEADER);
+     ScriptTableInfo->Version     = BOOT_SCRIPT_TABLE_VERSION;
      ScriptTableInfo->TableLength = 0;   // will be calculate at CloseTable
      mS3BootScriptTablePtr->TableLength = sizeof 
(EFI_BOOT_SCRIPT_TABLE_HEADER);
      mS3BootScriptTablePtr->TableBase = (UINT8*)(UINTN)S3TableBase;


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to