summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-09-19 17:00:16 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-09-21 10:14:18 -0500
commit4829bd486c7d36e61719cf39bde60f24bdc06f19 (patch)
tree35300626c29987d68443074e38689edfec0f30a4 /src/lib
parentff1429fbfefcb957f87176043dfba3cf467fe622 (diff)
downloadtalos-hostboot-4829bd486c7d36e61719cf39bde60f24bdc06f19.tar.gz
talos-hostboot-4829bd486c7d36e61719cf39bde60f24bdc06f19.zip
Change mm_set_permission interface.
Allow multiple settings to be OR'd together. Change-Id: I5f565c73919f20eceeb255531c6fe1c14e72182b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/349 Tested-by: Jenkins Server Reviewed-by: Melissa J. Connell <missyc@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/syscall_mm.C8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/syscall_mm.C b/src/lib/syscall_mm.C
index b72e897ba..282b32c68 100644
--- a/src/lib/syscall_mm.C
+++ b/src/lib/syscall_mm.C
@@ -46,7 +46,7 @@ int mm_remove_pages(PAGE_REMOVAL_OPS i_op, void* i_vaddr, uint64_t i_size)
/*
* Call to flush out the instruction cache
- * From the PowerPC ISA book II, section 1.8
+ * From the PowerPC ISA book II, section 1.8
* Instruction Storage
*/
void mm_icache_invalidate(void * i_addr, size_t i_cpu_word_count)
@@ -72,12 +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
+ * 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)
+int mm_set_permission(void* va, uint64_t size, uint64_t access_type)
{
return (int64_t)_syscall3(MM_SET_PERMISSION, va, (void*)size, (void*)access_type);
}
OpenPOWER on IntegriCloud