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 thunk_munmap() to NetBSD/usermode's thunk



details:   https://anonhg.NetBSD.org/src/rev/24bf812384a8
branches:  trunk
changeset: 768605:24bf812384a8
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Aug 22 15:30:16 2011 +0000

description:
Add thunk_munmap() to NetBSD/usermode's thunk

diffstat:

 sys/arch/usermode/include/thunk.h  |   3 ++-
 sys/arch/usermode/usermode/thunk.c |  10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 1d75b4086e8f -r 24bf812384a8 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Mon Aug 22 15:28:34 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Mon Aug 22 15:30:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.8 2011/08/21 17:11:59 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.9 2011/08/22 15:30:16 reinoud Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -73,6 +73,7 @@
 
 void * thunk_sbrk(intptr_t len);
 void * thunk_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset);
+int    thunk_munmap(void *Addr, size_t len);
 int    thunk_mprotect(void *addr, size_t len, int prot);
 
 #endif /* !_ARCH_USERMODE_INCLUDE_THUNK_H */
diff -r 1d75b4086e8f -r 24bf812384a8 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c        Mon Aug 22 15:28:34 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c        Mon Aug 22 15:30:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.8 2011/08/21 17:11:59 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.9 2011/08/22 15:30:16 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.8 2011/08/21 17:11:59 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.9 2011/08/22 15:30:16 reinoud Exp $");
 
 #include <machine/thunk.h>
 
@@ -209,6 +209,12 @@
 }
 
 int
+thunk_munmap(void *addr, size_t len)
+{
+       return munmap(addr, len);
+}
+
+int
 thunk_mprotect(void *addr, size_t len, int prot)
 {
        return mprotect(addr, len, prot);



Home | Main Index | Thread Index | Old Index