AGESA: Ignore error in OemCustomizeInitEarly()
It does not really matter if we continue or return after a failed assertion, system configuration is invalid anyway. Change-Id: I5ba47ee3fd6c5ff97b9229f8bfc9db08873b08ca Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7823 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
94e796aae6
commit
1ef67e166a
|
@ -112,11 +112,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -143,11 +143,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
/* Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR */
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
PcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
LibAmdMemCopy (PcieComplexListPtr, &PcieComplex, sizeof(PcieComplex), &InitEarly->StdHeader);
|
||||
|
|
|
@ -180,11 +180,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
/* Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR */
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
PcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -118,11 +118,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -120,11 +120,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -188,11 +188,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
TrinityPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -130,11 +130,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
LlanoPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -126,11 +126,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -126,11 +126,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -143,11 +143,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
/* Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR */
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
PcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
LibAmdMemCopy (PcieComplexListPtr, &PcieComplex, sizeof(PcieComplex), &InitEarly->StdHeader);
|
||||
|
|
|
@ -163,11 +163,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
TrinityPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -123,11 +123,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -137,11 +137,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
/* Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR */
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
PcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
LibAmdMemCopy (PcieComplexListPtr, &PcieComplex, sizeof(PcieComplex), &InitEarly->StdHeader);
|
||||
|
|
|
@ -179,11 +179,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
/* Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR */
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
PcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -159,15 +159,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
|
||||
/**
|
||||
* Could not allocate buffer for
|
||||
* PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
*/
|
||||
if (Status!= AGESA_SUCCESS) {
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr =
|
||||
(PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
|
|
@ -179,11 +179,7 @@ OemCustomizeInitEarly (
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
/* Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR */
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
PcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -124,11 +124,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
|
@ -124,11 +124,7 @@ PCIe_COMPLEX_DESCRIPTOR Brazos = {
|
|||
AllocHeapParams.BufferHandle = AMD_MEM_MISC_HANDLES_START;
|
||||
AllocHeapParams.Persist = HEAP_LOCAL_CACHE;
|
||||
Status = HeapAllocateBuffer (&AllocHeapParams, &InitEarly->StdHeader);
|
||||
if ( Status!= AGESA_SUCCESS) {
|
||||
// Could not allocate buffer for PCIe_COMPLEX_DESCRIPTOR , PCIe_PORT_DESCRIPTOR and PCIe_DDI_DESCRIPTOR
|
||||
ASSERT(FALSE);
|
||||
return;
|
||||
}
|
||||
ASSERT(Status == AGESA_SUCCESS);
|
||||
|
||||
BrazosPcieComplexListPtr = (PCIe_COMPLEX_DESCRIPTOR *) AllocHeapParams.BufferPtr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue