* compile subr_time.c from kern/
* some pmap stubs
This commit is contained in:
parent
5fbd525b19
commit
39afc34cc7
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.3 2007/08/08 09:06:11 pooka Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2007/08/09 07:42:07 pooka Exp $
|
||||
#
|
||||
|
||||
.include <bsd.own.mk>
|
||||
@ -13,11 +13,12 @@ LIB= rump
|
||||
SRCS= rump.c buffercache.c emul.c vfs.c genfs.c vm.c pool.c specfs.c
|
||||
|
||||
# just stubs
|
||||
SRCS+= fstrans_stub.c kauth_stub.c lock_stub.c misc_stub.c vfsops_stub.c
|
||||
SRCS+= fstrans_stub.c kauth_stub.c lock_stub.c misc_stub.c \
|
||||
pmap_stub.c vfsops_stub.c
|
||||
|
||||
# sys/kern
|
||||
SRCS+= subr_hash.c subr_prf_bitmask.c subr_xxx.c vfs_init.c \
|
||||
vfs_cache.c vfs_subr2.c vnode_if.c param.c
|
||||
SRCS+= subr_hash.c subr_prf_bitmask.c subr_time.c subr_xxx.c \
|
||||
vfs_init.c vfs_cache.c vfs_subr2.c vnode_if.c param.c
|
||||
|
||||
# src/lib/libkern
|
||||
SRCS+= scanc.c skpc.c
|
||||
|
55
sys/rump/librump/rumpkern/pmap_stub.c
Normal file
55
sys/rump/librump/rumpkern/pmap_stub.c
Normal file
@ -0,0 +1,55 @@
|
||||
/* $NetBSD: pmap_stub.c,v 1.1 2007/08/09 07:42:07 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||
*
|
||||
* Development of this software was supported by Google Summer of Code.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
||||
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
/* safe defaults */
|
||||
|
||||
bool
|
||||
pmap_is_modified(struct vm_page *pg)
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
|
||||
{
|
||||
|
||||
/* nada */
|
||||
}
|
||||
|
||||
bool
|
||||
pmap_clear_modify(struct vm_page *pg)
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user