Module Name:    src
Committed By:   reinoud
Date:           Mon Aug 22 15:30:16 UTC 2011

Modified Files:
        src/sys/arch/usermode/include: thunk.h
        src/sys/arch/usermode/usermode: thunk.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/usermode/include/thunk.h
cvs rdiff -u -r1.8 -r1.9 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.8 src/sys/arch/usermode/include/thunk.h:1.9
--- src/sys/arch/usermode/include/thunk.h:1.8	Sun Aug 21 17:11:59 2011
+++ src/sys/arch/usermode/include/thunk.h	Mon Aug 22 15:30:16 2011
@@ -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 <jmcne...@invisible.ca>
@@ -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 */

Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.8 src/sys/arch/usermode/usermode/thunk.c:1.9
--- src/sys/arch/usermode/usermode/thunk.c:1.8	Sun Aug 21 17:11:59 2011
+++ src/sys/arch/usermode/usermode/thunk.c	Mon Aug 22 15:30:16 2011
@@ -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 <jmcne...@invisible.ca>
@@ -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);

Reply via email to