Module Name: src Committed By: reinoud Date: Sun Aug 21 15:10:57 UTC 2011
Modified Files: src/sys/arch/usermode/include: thunk.h src/sys/arch/usermode/usermode: thunk.c Log Message: Add mmap() reachover call in thunk for NetBSD/usermode To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/include/thunk.h cvs rdiff -u -r1.6 -r1.7 src/sys/arch/usermode/usermode/thunk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/include/thunk.h diff -u src/sys/arch/usermode/include/thunk.h:1.6 src/sys/arch/usermode/include/thunk.h:1.7 --- src/sys/arch/usermode/include/thunk.h:1.6 Sat Aug 20 20:14:04 2011 +++ src/sys/arch/usermode/include/thunk.h Sun Aug 21 15:10:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: thunk.h,v 1.6 2011/08/20 20:14:04 reinoud Exp $ */ +/* $NetBSD: thunk.h,v 1.7 2011/08/21 15:10:57 reinoud Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill <jmcne...@invisible.ca> @@ -36,6 +36,7 @@ #include <sys/ucontext.h> #include <sys/signal.h> #include <sys/aio.h> +#include <sys/mman.h> int thunk_setitimer(int, const struct itimerval *, struct itimerval *); int thunk_gettimeofday(struct timeval *, void *); @@ -71,5 +72,6 @@ int thunk_aio_return(struct aiocb *); void * thunk_sbrk(intptr_t len); +void * thunk_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset); #endif /* !_ARCH_USERMODE_INCLUDE_THUNK_H */ Index: src/sys/arch/usermode/usermode/thunk.c diff -u src/sys/arch/usermode/usermode/thunk.c:1.6 src/sys/arch/usermode/usermode/thunk.c:1.7 --- src/sys/arch/usermode/usermode/thunk.c:1.6 Sat Aug 20 20:14:04 2011 +++ src/sys/arch/usermode/usermode/thunk.c Sun Aug 21 15:10:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: thunk.c,v 1.6 2011/08/20 20:14:04 reinoud Exp $ */ +/* $NetBSD: thunk.c,v 1.7 2011/08/21 15:10:57 reinoud Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill <jmcne...@invisible.ca> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: thunk.c,v 1.6 2011/08/20 20:14:04 reinoud Exp $"); +__RCSID("$NetBSD: thunk.c,v 1.7 2011/08/21 15:10:57 reinoud Exp $"); #include <machine/thunk.h> @@ -202,3 +202,8 @@ return sbrk(len); } +void * +thunk_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) +{ + return mmap(addr, len, prot, flags, fd, offset); +}