diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2013-08-14 13:14:31 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-08-19 08:57:34 -0500 |
commit | 70b61b1c5a72e04461e47ea70d7a32cde6bc9dda (patch) | |
tree | a59f00c4d53ddd4f01326664e49ab1866dbf35b1 /src/kernel | |
parent | 08d4d98624011c0a6523e0af660928be5ce112af (diff) | |
download | talos-hostboot-70b61b1c5a72e04461e47ea70d7a32cde6bc9dda.tar.gz talos-hostboot-70b61b1c5a72e04461e47ea70d7a32cde6bc9dda.zip |
Clear memstate on shutdown.
- Erase memory state once we switch to the payload so the dump
tools do not try to extract Hostboot (and waste a lot of time).
- Add 'limit' option to fsp-memdump that will prevent dumping
more than 8MB.
Change-Id: I14f553b12383de5c27aa558d706450e0eb1c844c
CQ: SW219324
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5793
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/misc.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kernel/misc.C b/src/kernel/misc.C index 2cd8a48aa..07fb06e70 100644 --- a/src/kernel/misc.C +++ b/src/kernel/misc.C @@ -138,6 +138,15 @@ namespace KernelMisc l_barrier->wait(); + if (c->master) + { + // Reset the memory state register so that the dump tools + // don't attempt to dump all of memory once payload runs. + KernelMemState::setMemScratchReg( + KernelMemState::MEM_CONTAINED_NR, + KernelMemState::NO_MEM); + } + kernel_shutdown(CpuManager::getCpuCount(), g_payload_base, g_payload_entry, |