diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2011-08-10 11:22:49 -0500 |
---|---|---|
committer | MATTHEW S. BARTH <msbarth@us.ibm.com> | 2011-08-10 17:30:34 -0500 |
commit | b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563 (patch) | |
tree | e15e50c0e9a80096c4a26db97d7c8686223a80d3 /src/include/kernel/vmmmgr.H | |
parent | 2a7a99c1e088b8b87e4b019d24550c047fb86e0d (diff) | |
download | talos-hostboot-b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563.tar.gz talos-hostboot-b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563.zip |
Allocate block system call stub
Change-Id: Ief3476b5306bc231c9d3044b2736fcd195e840b1
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/243
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel/vmmmgr.H')
-rw-r--r-- | src/include/kernel/vmmmgr.H | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/kernel/vmmmgr.H b/src/include/kernel/vmmmgr.H index feee7a731..7c8c63c22 100644 --- a/src/include/kernel/vmmmgr.H +++ b/src/include/kernel/vmmmgr.H @@ -6,6 +6,8 @@ #include <kernel/types.h> #include <kernel/spinlock.H> +class MessageQueue; + class VmmManager { public: @@ -68,6 +70,16 @@ class VmmManager */ static int devUnmap(void* ea); + /** + * @brief Allocates a block of virtual memory of the given size + * @param i_mq[in] - Message queue to be associated with the block + * @param i_va[in] - Base virtual address of the block to be allocated + * @param i_size[in] - Requested virtual memory size of the block + * @return int - 0 for successful block allocation, non-zero otherwise + */ + static int mmAllocBlock(MessageQueue* i_mq,void* i_va,uint64_t i_size); + + protected: VmmManager(); ~VmmManager() {}; |