summaryrefslogtreecommitdiffstats
path: root/src/usr/testcore
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/usr/testcore
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/usr/testcore')
-rw-r--r--src/usr/testcore/kernel/slbtest.H16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/usr/testcore/kernel/slbtest.H b/src/usr/testcore/kernel/slbtest.H
index a4b2a46a4..d3613720c 100644
--- a/src/usr/testcore/kernel/slbtest.H
+++ b/src/usr/testcore/kernel/slbtest.H
@@ -105,8 +105,22 @@ class slbtest: public CxxTest::TestSuite
if (rc != 0)
{
TS_FAIL("Failed to remove pages\n");
+ }
+ }
+
+ void testSetPerm()
+ {
+ int rc = -1;
+ uint64_t va = 0xC800000000; //800GB
+ uint64_t size = 0x0;
+ PAGE_PERMISSIONS access = WRITABLE; //Access value
+ printk("Update Page Permissions. but not real page or address\n");
+ rc = mm_set_permission(reinterpret_cast<void*>(va), size, access);
+ if (rc != 0)
+ {
+ TS_FAIL("Failed to Update permissions.\n");
}
- }
+ }
private:
OpenPOWER on IntegriCloud