Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern Provide the default_mapaddr method...
details: https://anonhg.NetBSD.org/src/rev/9cc24abb4397
branches: trunk
changeset: 749617:9cc24abb4397
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Dec 04 16:47:33 2009 +0000
description:
Provide the default_mapaddr method in default rump emul (since some
kernel callers want to use it).
diffstat:
sys/rump/librump/rumpkern/rump.c | 9 ++++++---
sys/rump/librump/rumpkern/vm.c | 12 +++++++++---
2 files changed, 15 insertions(+), 6 deletions(-)
diffs (77 lines):
diff -r ccb5773aacd9 -r 9cc24abb4397 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c Fri Dec 04 14:44:57 2009 +0000
+++ b/sys/rump/librump/rumpkern/rump.c Fri Dec 04 16:47:33 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.c,v 1.144 2009/12/03 12:35:34 pooka Exp $ */
+/* $NetBSD: rump.c,v 1.145 2009/12/04 16:47:33 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.144 2009/12/03 12:35:34 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.145 2009/12/04 16:47:33 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -123,7 +123,9 @@
}
static int rump_inited;
-static struct emul emul_rump;
+static struct emul emul_rump = {
+ .e_vm_default_addr = uvm_default_mapaddr,
+};
int rump__unavailable(void);
int rump__unavailable() {return EOPNOTSUPP;}
@@ -455,6 +457,7 @@
p->p_limit = &rump_limits;
p->p_pid = pid;
p->p_vmspace = &rump_vmspace;
+ p->p_emul = &emul_rump;
p->p_fd = fd_init(NULL);
p->p_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NONE);
l->l_cred = rump_cred_suserget();
diff -r ccb5773aacd9 -r 9cc24abb4397 sys/rump/librump/rumpkern/vm.c
--- a/sys/rump/librump/rumpkern/vm.c Fri Dec 04 14:44:57 2009 +0000
+++ b/sys/rump/librump/rumpkern/vm.c Fri Dec 04 16:47:33 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm.c,v 1.67 2009/11/04 18:25:36 pooka Exp $ */
+/* $NetBSD: vm.c,v 1.68 2009/12/04 16:47:33 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.67 2009/11/04 18:25:36 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.68 2009/12/04 16:47:33 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -251,7 +251,6 @@
}
-
void
uvm_pagewire(struct vm_page *pg)
{
@@ -502,6 +501,13 @@
/* nada for now */
}
+vaddr_t
+uvm_default_mapaddr(struct proc *p, vaddr_t base, vsize_t sz)
+{
+
+ return 0;
+}
+
/*
* UVM km
*/
Home |
Main Index |
Thread Index |
Old Index