summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2011-09-09 16:46:39 -0500
committerMATTHEW S. BARTH <msbarth@us.ibm.com>2011-09-14 11:25:18 -0500
commitb06c8727c809ec10aafe8fad0b929626f9d50987 (patch)
treea23543920d2826749bb125ebe6cfa22ad9b36446 /src/lib
parent4b2a8bf042e96d8181929e92d9b241f65280a93c (diff)
downloadblackbird-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/lib')
-rw-r--r--src/lib/syscall_mm.C9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/syscall_mm.C b/src/lib/syscall_mm.C
index ebc95b951..52e0a5340 100644
--- a/src/lib/syscall_mm.C
+++ b/src/lib/syscall_mm.C
@@ -34,6 +34,14 @@ int mm_alloc_block(msg_q_t mq,void* va,uint64_t size)
return (int64_t)_syscall3(MM_ALLOC_BLOCK, mq, va, (void*)size);
}
+/**
+ * System call to remove page(s) by a specified operation
+ */
+int mm_remove_pages(PAGE_REMOVAL_OPS i_op, void* i_vaddr, uint64_t i_size)
+{
+ return (int64_t)_syscall3(MM_REMOVE_PAGES, (void*)i_op, i_vaddr,
+ (void*)i_size);
+}
/*
* Call to flush out the instruction cache
@@ -63,4 +71,3 @@ void mm_icache_invalidate(void * i_addr, size_t i_cpu_word_count)
isync();
}
-
OpenPOWER on IntegriCloud