Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Allow to build in envs without USRST...
details: https://anonhg.NetBSD.org/src/rev/5b417ce16eae
branches: trunk
changeset: 789238:5b417ce16eae
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Aug 11 09:07:15 2013 +0000
description:
Allow to build in envs without USRSTACK (namely, rump kernels on powerpc).
TODO: all of the m*() calls are by definition incompatible with rump
kernels; including them is no great damage, but they're not useful either.
diffstat:
sys/compat/linux/common/linux_misc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r d2504f9edd80 -r 5b417ce16eae sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c Sun Aug 11 08:03:10 2013 +0000
+++ b/sys/compat/linux/common/linux_misc.c Sun Aug 11 09:07:15 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.223 2013/04/15 19:24:04 christos Exp $ */
+/* $NetBSD: linux_misc.c,v 1.224 2013/08/11 09:07:15 pooka Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.223 2013/04/15 19:24:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.224 2013/08/11 09:07:15 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -539,6 +539,7 @@
return error;
}
+#ifdef USRSTACK
int
linux_sys_mprotect(struct lwp *l, const struct linux_sys_mprotect_args *uap, register_t *retval)
{
@@ -604,6 +605,7 @@
vm_map_unlock(map);
return uvm_map_protect(map, start, end, prot, FALSE);
}
+#endif /* USRSTACK */
/*
* This code is partly stolen from src/lib/libc/compat-43/times.c
Home |
Main Index |
Thread Index |
Old Index