diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2011-08-10 11:22:49 -0500 |
---|---|---|
committer | MATTHEW S. BARTH <msbarth@us.ibm.com> | 2011-08-10 17:30:34 -0500 |
commit | b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563 (patch) | |
tree | e15e50c0e9a80096c4a26db97d7c8686223a80d3 /src/lib | |
parent | 2a7a99c1e088b8b87e4b019d24550c047fb86e0d (diff) | |
download | talos-hostboot-b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563.tar.gz talos-hostboot-b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563.zip |
Allocate block system call stub
Change-Id: Ief3476b5306bc231c9d3044b2736fcd195e840b1
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/243
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/makefile | 2 | ||||
-rw-r--r-- | src/lib/syscall_mm.C | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/makefile b/src/lib/makefile index 67b412a3d..b1660d469 100644 --- a/src/lib/makefile +++ b/src/lib/makefile @@ -20,6 +20,6 @@ ROOTPATH = ../.. OBJS = string.o stdlib.o assert.o stdio.o OBJS += syscall_stub.o syscall_task.o syscall_msg.o OBJS += syscall_mmio.o syscall_time.o sync.o syscall_misc.o -OBJS += cxxtest_data.o +OBJS += syscall_mm.o cxxtest_data.o include ${ROOTPATH}/config.mk diff --git a/src/lib/syscall_mm.C b/src/lib/syscall_mm.C new file mode 100644 index 000000000..187cdced2 --- /dev/null +++ b/src/lib/syscall_mm.C @@ -0,0 +1,12 @@ +#include <sys/syscall.h> +#include <sys/mm.h> + +using namespace Systemcalls; + +/** + * System call to allocate a block of virtual memory within the base segment + */ +int mm_alloc_block(msg_q_t mq,void* va,uint64_t size) +{ + return (int64_t)_syscall3(MM_ALLOC_BLOCK, mq, va, (void*)size); +} |