Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode Add mmap() reachover call in thunk for Net...
details: https://anonhg.NetBSD.org/src/rev/d126632ab193
branches: trunk
changeset: 768588:d126632ab193
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sun Aug 21 15:10:57 2011 +0000
description:
Add mmap() reachover call in thunk for NetBSD/usermode
diffstat:
sys/arch/usermode/include/thunk.h | 4 +++-
sys/arch/usermode/usermode/thunk.c | 9 +++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diffs (51 lines):
diff -r f4f7c4060125 -r d126632ab193 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Sun Aug 21 15:08:43 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Sun Aug 21 15:10:57 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 */
diff -r f4f7c4060125 -r d126632ab193 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Sun Aug 21 15:08:43 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Sun Aug 21 15:10:57 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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);
+}
Home |
Main Index |
Thread Index |
Old Index