Module Name: src
Committed By: reinoud
Date: Wed Sep 14 18:26:25 UTC 2011
Modified Files:
src/sys/arch/usermode/include: thunk.h
src/sys/arch/usermode/usermode: thunk.c
Log Message:
Provide thunk fuction to return the host machine's VM_MIN_ADDRESS
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/usermode/include/thunk.h
cvs rdiff -u -r1.36 -r1.37 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.32 src/sys/arch/usermode/include/thunk.h:1.33
--- src/sys/arch/usermode/include/thunk.h:1.32 Fri Sep 9 20:04:43 2011
+++ src/sys/arch/usermode/include/thunk.h Wed Sep 14 18:26:24 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.32 2011/09/09 20:04:43 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.33 2011/09/14 18:26:24 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -126,6 +126,7 @@
int thunk_posix_memalign(void **, size_t, size_t);
char * thunk_getenv(const char *);
+vaddr_t thunk_get_vm_min_address(void);
int thunk_sdl_init(unsigned int, unsigned int, unsigned short);
void * thunk_sdl_getfb(size_t);
Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.36 src/sys/arch/usermode/usermode/thunk.c:1.37
--- src/sys/arch/usermode/usermode/thunk.c:1.36 Fri Sep 9 20:04:43 2011
+++ src/sys/arch/usermode/usermode/thunk.c Wed Sep 14 18:26:24 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.36 2011/09/09 20:04:43 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.37 2011/09/14 18:26:24 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -28,11 +28,12 @@
#include <sys/cdefs.h>
#ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.36 2011/09/09 20:04:43 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.37 2011/09/14 18:26:24 reinoud Exp $");
#endif
#include <sys/types.h>
#include <sys/mman.h>
+#include <machine/vmparam.h>
#include <aio.h>
#include <assert.h>
@@ -522,3 +523,10 @@
{
return getenv(name);
}
+
+vaddr_t
+thunk_get_vm_min_address(void)
+{
+ return VM_MIN_ADDRESS;
+}
+