amd/agesa/f15/Proc/Common/S3SaveState.c: Sync with f15tn
Change-Id: If46079c1affc7d74767c4215467fd6754b24f20c Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7576 Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
09915c1dd9
commit
afe6a69b33
|
@ -9,13 +9,13 @@
|
||||||
* @xrefitem bom "File Content Label" "Release Content"
|
* @xrefitem bom "File Content Label" "Release Content"
|
||||||
* @e project: AGESA
|
* @e project: AGESA
|
||||||
* @e sub-project: GNB
|
* @e sub-project: GNB
|
||||||
* @e \$Revision: 55552 $ @e \$Date: 2011-06-22 09:31:58 -0600 (Wed, 22 Jun 2011) $
|
* @e \$Revision: 63425 $ @e \$Date: 2011-12-22 11:24:10 -0600 (Thu, 22 Dec 2011) $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Advanced Micro Devices, Inc.
|
* Copyright (c) 2008 - 2012, Advanced Micro Devices, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -39,7 +39,6 @@
|
||||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
|
||||||
* ***************************************************************************
|
* ***************************************************************************
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -269,7 +268,7 @@ S3SaveStateSaveWriteOp (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
S3_SCRIPT_DEBUG_CODE (
|
S3_SCRIPT_DEBUG_CODE (
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: %s Address: 0x%08x Data: ", S3SaveDebugOpcodeString (StdHeader, OpCode), (intptr_t) Address);
|
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: %s Address: 0x%08x Data: ", S3SaveDebugOpcodeString (StdHeader, OpCode), Address);
|
||||||
S3SaveDebugPrintHexArray (StdHeader, Buffer, Count, Width);
|
S3SaveDebugPrintHexArray (StdHeader, Buffer, Count, Width);
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, "\n");
|
IDS_HDT_CONSOLE (S3_TRACE, "\n");
|
||||||
);
|
);
|
||||||
|
@ -334,7 +333,7 @@ S3SaveStateSaveReadWriteOp (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
S3_SCRIPT_DEBUG_CODE (
|
S3_SCRIPT_DEBUG_CODE (
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: %s Address: 0x%08x Data: ", S3SaveDebugOpcodeString (StdHeader, OpCode), (intptr_t) Address);
|
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: %s Address: 0x%08x Data: ", S3SaveDebugOpcodeString (StdHeader, OpCode), Address);
|
||||||
S3SaveDebugPrintHexArray (StdHeader, Data, 1, Width);
|
S3SaveDebugPrintHexArray (StdHeader, Data, 1, Width);
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, " Mask: ");
|
IDS_HDT_CONSOLE (S3_TRACE, " Mask: ");
|
||||||
S3SaveDebugPrintHexArray (StdHeader, DataMask, 1, Width);
|
S3SaveDebugPrintHexArray (StdHeader, DataMask, 1, Width);
|
||||||
|
@ -410,7 +409,7 @@ S3SaveStateSavePollOp (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
S3_SCRIPT_DEBUG_CODE (
|
S3_SCRIPT_DEBUG_CODE (
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: %s Address: 0x%08x Data: ", S3SaveDebugOpcodeString (StdHeader, OpCode), (intptr_t) Address);
|
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: %s Address: 0x%08x Data: ", S3SaveDebugOpcodeString (StdHeader, OpCode), Address);
|
||||||
S3SaveDebugPrintHexArray (StdHeader, Data, 1, Width);
|
S3SaveDebugPrintHexArray (StdHeader, Data, 1, Width);
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, " Mask: ");
|
IDS_HDT_CONSOLE (S3_TRACE, " Mask: ");
|
||||||
S3SaveDebugPrintHexArray (StdHeader, DataMask, 1, Width);
|
S3SaveDebugPrintHexArray (StdHeader, DataMask, 1, Width);
|
||||||
|
@ -482,7 +481,7 @@ S3SaveStateSaveInfoOp (
|
||||||
SaveOffsetPtr->OpCode = OpCode;
|
SaveOffsetPtr->OpCode = OpCode;
|
||||||
SaveOffsetPtr->Length = InformationLength;
|
SaveOffsetPtr->Length = InformationLength;
|
||||||
S3_SCRIPT_DEBUG_CODE (
|
S3_SCRIPT_DEBUG_CODE (
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: Info: %s \n", (CHAR8 *)Information);
|
IDS_HDT_CONSOLE (S3_TRACE, " S3 Save: Info: %s \n", Information);
|
||||||
);
|
);
|
||||||
LibAmdMemCopy (
|
LibAmdMemCopy (
|
||||||
(UINT8 *) SaveOffsetPtr + sizeof (S3_INFO_OP_HEADER),
|
(UINT8 *) SaveOffsetPtr + sizeof (S3_INFO_OP_HEADER),
|
||||||
|
@ -598,7 +597,6 @@ S3SaveDebugOpcodeString (
|
||||||
return (CHAR8 *)"DISPATCH";
|
return (CHAR8 *)"DISPATCH";
|
||||||
default:
|
default:
|
||||||
IDS_ERROR_TRAP;
|
IDS_ERROR_TRAP;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return (CHAR8 *)"!!! Unrecognize opcode !!!";
|
return (CHAR8 *)"!!! Unrecognize opcode !!!";
|
||||||
}
|
}
|
||||||
|
@ -641,7 +639,7 @@ S3SaveDebugPrintHexArray (
|
||||||
break;
|
break;
|
||||||
case AccessWidth64:
|
case AccessWidth64:
|
||||||
case AccessS3SaveWidth64:
|
case AccessS3SaveWidth64:
|
||||||
IDS_HDT_CONSOLE (S3_TRACE, "0x%08x%08x", ((UINT32*) ((UINT64*)Array + Index))[1], ((UINT32*)((UINT64*)Array + Index))[0]);
|
IDS_HDT_CONSOLE (S3_TRACE, "0x%08x%08x", ((UINT32*) ((UINT64*)Array + Index)[1], ((UINT32*) ((UINT64*)Array + Index))[0]));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
IDS_ERROR_TRAP;
|
IDS_ERROR_TRAP;
|
||||||
|
|
Loading…
Reference in New Issue