summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2012-06-27 17:59:25 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-07-11 08:18:00 -0500
commita23283c6facfee055c9c6d43e23a04ca02edc467 (patch)
tree51c7e8e5af9344041941a140be33950159b00972 /src/lib
parent2a37ac4be40500b6849444168181931202892a96 (diff)
downloadtalos-hostboot-a23283c6facfee055c9c6d43e23a04ca02edc467.tar.gz
talos-hostboot-a23283c6facfee055c9c6d43e23a04ca02edc467.zip
Improve memory page manager for low memory situations
RTC: 40831 Change-Id: I7889f91eec44a10d56ffc94e03c7557f8085100a Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1272 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/syscall_mm.C53
1 files changed, 31 insertions, 22 deletions
diff --git a/src/lib/syscall_mm.C b/src/lib/syscall_mm.C
index 129f304da..006586f81 100644
--- a/src/lib/syscall_mm.C
+++ b/src/lib/syscall_mm.C
@@ -1,25 +1,26 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/lib/syscall_mm.C $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2011
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG
+ * This is an automatically generated prolog.
+ *
+ * $Source: src/lib/syscall_mm.C $
+ *
+ * IBM CONFIDENTIAL
+ *
+ * COPYRIGHT International Business Machines Corp. 2011-2012
+ *
+ * p1
+ *
+ * Object Code Only (OCO) source materials
+ * Licensed Internal Code Source Materials
+ * IBM HostBoot Licensed Internal Code
+ *
+ * The source code for this program is not published or other-
+ * wise divested of its trade secrets, irrespective of what has
+ * been deposited with the U.S. Copyright Office.
+ *
+ * Origin: 30
+ *
+ * IBM_PROLOG_END_TAG
+ */
#include <sys/syscall.h>
#include <sys/mm.h>
#include <arch/ppc.H>
@@ -80,3 +81,11 @@ 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);
}
+
+/**
+ * System call to flush pages
+ */
+void mm_flush_pages(uint64_t i_sev)
+{
+ _syscall1(MM_FLUSH_PAGES, (void*)i_sev);
+}
OpenPOWER on IntegriCloud