Stub out some ppc routines to allow the evbppc build to pass through here.

This commit is contained in:
pooka 2009-01-14 18:17:23 +00:00
parent 6d87d90fe9
commit 36c4acf6f5

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap_stub.c,v 1.9 2008/12/18 00:24:12 pooka Exp $ */
/* $NetBSD: pmap_stub.c,v 1.10 2009/01/14 18:17:23 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap_stub.c,v 1.9 2008/12/18 00:24:12 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap_stub.c,v 1.10 2009/01/14 18:17:23 pooka Exp $");
#include <sys/param.h>
@ -191,6 +191,22 @@ pmap_protect_long(pmap_t pmap, vaddr_t va1, vaddr_t va2, vm_prot_t prot)
}
#endif
#ifdef __powerpc__
bool
pmap_clear_bit(struct vm_page *pg, int ptebit)
{
return true;
}
bool
pmap_query_bit(struct vm_page *pg, int ptebit)
{
return true;
}
#endif
#if defined(__sparc__) && !defined(__sparc64__)
bool (*pmap_clear_modify_p)(struct vm_page *) = pmap_clear_modify;
bool (*pmap_is_modified_p)(struct vm_page *) = pmap_is_modified;