Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode Provide thunk fuction to return the host m...
details: https://anonhg.NetBSD.org/src/rev/11ebc4d01c65
branches: trunk
changeset: 769569:11ebc4d01c65
user: reinoud <reinoud%NetBSD.org@localhost>
date: Wed Sep 14 18:26:24 2011 +0000
description:
Provide thunk fuction to return the host machine's VM_MIN_ADDRESS
diffstat:
sys/arch/usermode/include/thunk.h | 3 ++-
sys/arch/usermode/usermode/thunk.c | 12 ++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diffs (51 lines):
diff -r f0e37928396c -r 11ebc4d01c65 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Wed Sep 14 17:35:44 2011 +0000
+++ b/sys/arch/usermode/include/thunk.h Wed Sep 14 18:26:24 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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);
diff -r f0e37928396c -r 11ebc4d01c65 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Wed Sep 14 17:35:44 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Wed Sep 14 18:26:24 2011 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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;
+}
+
Home |
Main Index |
Thread Index |
Old Index