summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2018-02-24 21:46:46 +0530
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-04-19 18:03:23 -0400
commitc06a321964200ef77090b1b0e4e11ee903088508 (patch)
treec6b33e24c64f725ff405028d25c8cb976f40049c
parent30cd84febe39134df6d837538e68e25ca9fb8b76 (diff)
downloadtalos-hostboot-c06a321964200ef77090b1b0e4e11ee903088508.tar.gz
talos-hostboot-c06a321964200ef77090b1b0e4e11ee903088508.zip
dump: Add support for dump source address zero
Presently dump collector skips source address that start with zero. In the case of OPAL systems Linux is loaded at 0th address and we want to capture that memory. Change-Id: Ic09afa617746dff9f2cf801823d64e261a3f9eca Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55189 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r--src/usr/dump/dumpCollect.C10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/usr/dump/dumpCollect.C b/src/usr/dump/dumpCollect.C
index 6c3bf8ac6..0f31602cf 100644
--- a/src/usr/dump/dumpCollect.C
+++ b/src/usr/dump/dumpCollect.C
@@ -304,10 +304,14 @@ errlHndl_t copySrcToDest(dumpEntry *srcTableEntry,
curSrcTableAddr = srcTableEntry[curSourceIndex].dataAddr;
bytesLeftInSrc = srcTableEntry[curSourceIndex].dataSize;
- // If the current Src table Address is 0 we are done
- if (curSrcTableAddr == 0)
+ // src address 0 is valid source address on OPAL sytems
+ if (!TARGETING::is_sapphire_load())
{
- break;
+ // If the current Src table Address is 0 we are done
+ if (curSrcTableAddr == 0)
+ {
+ break;
+ }
}
srcOffset = curSrcTableAddr -
OpenPOWER on IntegriCloud