summaryrefslogtreecommitdiffstats
path: root/src/include/usr/vmmconst.h
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2014-04-15 17:45:53 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-05-09 07:19:10 -0500
commit868e98cac34aed64ffb5f983a3662ae31af0c8a1 (patch)
tree51eb73b4c371ec4e1347f6ff7423d4b32c576436 /src/include/usr/vmmconst.h
parentf1207a134bea63fc08342effe5e806aa38cc26e6 (diff)
downloadtalos-hostboot-868e98cac34aed64ffb5f983a3662ae31af0c8a1.tar.gz
talos-hostboot-868e98cac34aed64ffb5f983a3662ae31af0c8a1.zip
Move mailbox area to leave more room for Sapphire.
Change-Id: If39241fbbc110400177b3ef3a5e895f5ed14f2a4 RTC: 81670 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10588 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/vmmconst.h')
-rw-r--r--src/include/usr/vmmconst.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/usr/vmmconst.h b/src/include/usr/vmmconst.h
index 33586a4db..df2d0f604 100644
--- a/src/include/usr/vmmconst.h
+++ b/src/include/usr/vmmconst.h
@@ -167,6 +167,22 @@ enum BlockPriority
*/
#define VMM_INTERNODE_PRESERVED_MEMORY_ADDR (96 * MEGABYTE)
+/** Region of memory reserved for unsecure memory accesses
+ *
+ * The Secure BAR is placed at 64MB so that initially, everything above
+ * is marked secure and everything below is marked unsecure. External
+ * entities, such as FSP, can only access memory in the unsecure region.
+ * Items such as the Mailbox DMA buffer need to be placed into this region.
+ *
+ * We do not want to place this region directly at zero because in some cases
+ * we load a payload at address 0 (ex. Sapphire) and need to make sure there
+ * is enough room for the payload before any reserved unsecure space.
+ *
+ * Choosing (Secure BAR - Cache Size) as the value for this region, which
+ * allows us to have a payload image up to that size and up to 'Cache Size'
+ * worth of unsecure content.
+ */
+#define VMM_UNSECURE_RESERVED_MEMORY_BASEADDR (56 * MEGABYTE)
/**
* Test Constants
OpenPOWER on IntegriCloud