summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2011-09-07 14:34:48 -0500
committerMelissa J. Connell <missyc@us.ibm.com>2011-09-15 23:19:29 -0500
commita740789978e866ce8e9c278ecb05b0060751f090 (patch)
treeb3e6babc2767801f22ace9745dc56457e8eff218 /src/lib
parenta5f6b8ec8b637628dd843ec8f187e01acb678b67 (diff)
downloadtalos-hostboot-a740789978e866ce8e9c278ecb05b0060751f090.tar.gz
talos-hostboot-a740789978e866ce8e9c278ecb05b0060751f090.zip
Adding new interface to update page permissions.. Interface only.
Added changes from review comments Updated new enum for system call Change-Id: I8a55b5e2f67427e59263eae31913e438ca782006 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/331 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Melissa J. Connell <missyc@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/syscall_mm.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/syscall_mm.C b/src/lib/syscall_mm.C
index 52e0a5340..b72e897ba 100644
--- a/src/lib/syscall_mm.C
+++ b/src/lib/syscall_mm.C
@@ -23,6 +23,7 @@
#include <sys/syscall.h>
#include <sys/mm.h>
#include <arch/ppc.H>
+#include <kernel/vmmmgr.H>
using namespace Systemcalls;
@@ -71,3 +72,12 @@ void mm_icache_invalidate(void * i_addr, size_t i_cpu_word_count)
isync();
}
+
+
+/**
+ * System call update permissions on a page for a given virtual address
+ */
+int mm_set_permission(void* va, uint64_t size, PAGE_PERMISSIONS access_type)
+{
+ return (int64_t)_syscall3(MM_SET_PERMISSION, va, (void*)size, (void*)access_type);
+}
OpenPOWER on IntegriCloud