diff options
| author | Missy Connell <missyc@us.ibm.com> | 2011-09-19 15:13:28 -0500 |
|---|---|---|
| committer | Melissa J. Connell <missyc@us.ibm.com> | 2011-10-06 11:41:57 -0500 |
| commit | fdbe0a754e64fb8c4c7cb9aa98184ca87a867e22 (patch) | |
| tree | fe4b3b6dc6b84c0e494dd6ab305e1e60635dd7d7 /src/include/kernel/block.H | |
| parent | 336f6ac6abc1d5ee4efc1229be06a66baf06643b (diff) | |
| download | blackbird-hostboot-fdbe0a754e64fb8c4c7cb9aa98184ca87a867e22.tar.gz blackbird-hostboot-fdbe0a754e64fb8c4c7cb9aa98184ca87a867e22.zip | |
pge permission functionality..
Add code that applies the permissions requested.
Add merge conflicts
Change-Id: I5911406ba4670714faaf4880399da71692559397
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/353
Tested-by: Jenkins Server
Reviewed-by: Melissa J. Connell <missyc@us.ibm.com>
Diffstat (limited to 'src/include/kernel/block.H')
| -rw-r--r-- | src/include/kernel/block.H | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/kernel/block.H b/src/include/kernel/block.H index 88c6664c2..405791e94 100644 --- a/src/include/kernel/block.H +++ b/src/include/kernel/block.H @@ -32,6 +32,7 @@ #include <kernel/blockmsghdlr.H> #include <kernel/msghandler.H> #include <kernel/ptmgr.H> +#include <sys/mm.h> class ShadowPTE; class Segment; @@ -232,6 +233,21 @@ class Block */ void releaseAllPages(); + /** + * @brief Sets the page permissions for a given virtual addr + * and a size of memory needing updated permissions + * @param i_va[in] - virtual address of the beginning of the + * pages that need updating. + * @param i_size[in] - range of memory that needs updating + * if i_size equals 0 then we only need to update an + * individual page. + * @param i_access_type[in] - type of permission to set using + * PAGE_PERMISSION enum values OR'd together + * @return int - 0 for successful block allocation, + * non-zero otherwise + */ + int mmSetPermission(uint64_t i_va, uint64_t i_size, uint64_t i_access_type); + private: /** Base address of the block */ const uint64_t iv_baseAddr; |

