diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2011-12-01 11:47:33 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-12-08 13:03:52 -0600 |
commit | fdcb470b27bba6782bf6b6a9a60be3e54446f506 (patch) | |
tree | 7a8f5e7325107aec861fb4ae05444caebc6f9c39 /src/usr/targeting/attrrp.C | |
parent | 47facf10fc682816fd7683b389451b7be9a6dadb (diff) | |
download | talos-hostboot-fdcb470b27bba6782bf6b6a9a60be3e54446f506.tar.gz talos-hostboot-fdcb470b27bba6782bf6b6a9a60be3e54446f506.zip |
Complete virtual memory write path during shutdown sequence
Change-Id: I93a6305b88539d8cf1b41cfc4cde713fd7c19494
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/522
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/attrrp.C')
-rw-r--r-- | src/usr/targeting/attrrp.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/targeting/attrrp.C b/src/usr/targeting/attrrp.C index 80ab93ab1..8c2d43731 100644 --- a/src/usr/targeting/attrrp.C +++ b/src/usr/targeting/attrrp.C @@ -27,10 +27,12 @@ #include <errno.h> #include <string.h> #include <algorithm> +#include <vmmconst.h> #include <targeting/targreasoncodes.H> #include "attrrp.H" #include "trace.H" +#include <initservice/initserviceif.H> using namespace INITSERVICE; using namespace ERRORLOG; @@ -392,6 +394,13 @@ namespace TARGETING case SECTION_TYPE_PNOR_RW: l_perm = WRITABLE | WRITE_TRACKED; + /* + * Register this memory range to be FLUSHed during + * a shutdown. + */ + INITSERVICE::registerBlock( + reinterpret_cast<void*>(iv_sections[i].vmmAddress), + iv_sections[i].size,ATTR_PRIORITY); break; case SECTION_TYPE_HEAP_PNOR_INIT: |