diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2015-02-20 10:17:39 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-02-21 15:44:20 -0600 |
commit | 6a3d012d7fc75139ec4501dc4ceaaf58f66cefa9 (patch) | |
tree | ecdd0ec9bb3a125ffbf65acff87c0cf6c42ac3ac /src | |
parent | db06e59745d76015d254d4202f132e1feb352f05 (diff) | |
download | talos-hostboot-6a3d012d7fc75139ec4501dc4ceaaf58f66cefa9.tar.gz talos-hostboot-6a3d012d7fc75139ec4501dc4ceaaf58f66cefa9.zip |
Disable collectBacktrace for HBRT
Change-Id: I3e7230935ab1b904a5b5ae51fcba8f8773da7641
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15863
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/errl/backtrace.C | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/usr/errl/backtrace.C b/src/usr/errl/backtrace.C index 28ae1905f..34eaadb17 100755 --- a/src/usr/errl/backtrace.C +++ b/src/usr/errl/backtrace.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2015 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -47,6 +49,13 @@ void collectBacktrace ( std::vector<uint64_t> & o_addrVector ) { o_addrVector.clear(); + // TODO via RTC 124373 + // During runtime, when OPAL application call us, we have a crash + // in this code. Reason is that OPAL apis are Little Endian where as + // HB apis are Big Endian. When we unwind stack and goes to OPAL API + // we crash. RTC 124373 will handle this. + #ifndef __HOSTBOOT_RUNTIME + uint64_t* frame = static_cast<uint64_t*>(framePointer()); bool first = true; while (frame != NULL) @@ -59,6 +68,7 @@ void collectBacktrace ( std::vector<uint64_t> & o_addrVector ) frame = reinterpret_cast<uint64_t*>(*frame); first = false; } + #endif //__HOSTBOOT_RUNTIME } // End collectBacktrace |