diff options
| author | Matthew Barth <msbarth@us.ibm.com> | 2011-09-09 16:46:39 -0500 |
|---|---|---|
| committer | MATTHEW S. BARTH <msbarth@us.ibm.com> | 2011-09-14 11:25:18 -0500 |
| commit | b06c8727c809ec10aafe8fad0b929626f9d50987 (patch) | |
| tree | a23543920d2826749bb125ebe6cfa22ad9b36446 /src/include/kernel/vmmmgr.H | |
| parent | 4b2a8bf042e96d8181929e92d9b241f65280a93c (diff) | |
| download | blackbird-hostboot-b06c8727c809ec10aafe8fad0b929626f9d50987.tar.gz blackbird-hostboot-b06c8727c809ec10aafe8fad0b929626f9d50987.zip | |
Remove page by given TYPE system call
Change-Id: Iffdd97a75944abbd52dbc72d3aa1394b771fd371
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/333
Tested-by: Jenkins Server
Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com>
Diffstat (limited to 'src/include/kernel/vmmmgr.H')
| -rw-r--r-- | src/include/kernel/vmmmgr.H | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/kernel/vmmmgr.H b/src/include/kernel/vmmmgr.H index 06533e34e..ff8702f53 100644 --- a/src/include/kernel/vmmmgr.H +++ b/src/include/kernel/vmmmgr.H @@ -25,6 +25,7 @@ #include <limits.h> #include <sys/mmio.h> +#include <sys/mm.h> #include <kernel/types.h> #include <kernel/spinlock.H> @@ -108,6 +109,19 @@ class VmmManager */ static uint64_t findPhysicalAddress(uint64_t i_vaddr); + /** + * @brief Remove pages by a specified operation of the given size + * @param[in] i_op - Page removal operation to perform + * @param[in] i_vaddr - Virtual address associated to page(s) + * @param[in] i_size - Size of memory to perform page removal on + * @return int - 0 for successful page removal, non-zero otherwise + * + * The given virtual address will be 'rounded' down to the nearest page + * boundary, along with the given size will be 'rounded' up to the + * nearest divisible page size. + */ + static int mmRemovePages(PAGE_REMOVAL_OPS i_op, void* i_vaddr, + uint64_t i_size); protected: VmmManager(); |

