Use the same hack as pmap_zero_page() and pmap_copy_page() to provide
direct-mapped pool pages.
This commit is contained in:
parent
3b29e1e158
commit
4b603c180a
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pmap.h,v 1.11 1999/03/05 06:10:48 tsubai Exp $ */
|
/* $NetBSD: pmap.h,v 1.12 1999/04/16 21:45:19 thorpej Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||||
|
@ -81,6 +81,16 @@ int ptebits __P((paddr_t, int));
|
||||||
#define PMAP_NEED_PROCWR
|
#define PMAP_NEED_PROCWR
|
||||||
void pmap_procwr __P((struct proc *, vaddr_t, size_t));
|
void pmap_procwr __P((struct proc *, vaddr_t, size_t));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Alternate mapping hooks for pool pages. Avoids thrashing the TLB.
|
||||||
|
*
|
||||||
|
* Note: This won't work if we have more memory than can be direct-mapped
|
||||||
|
* VA==PA all at once. But pmap_copy_page() and pmap_zero_page() will have
|
||||||
|
* this problem, too.
|
||||||
|
*/
|
||||||
|
#define PMAP_MAP_POOLPAGE(pa) (pa)
|
||||||
|
#define PMAP_UNMAP_POOLPAGE(pa) (pa)
|
||||||
|
|
||||||
static __inline paddr_t
|
static __inline paddr_t
|
||||||
vtophys(va)
|
vtophys(va)
|
||||||
vaddr_t va;
|
vaddr_t va;
|
||||||
|
|
Loading…
Reference in New Issue