pmap.c (1a46737f84b8a1e8d1ef660ae8f2b30ceb1bd6ef) pmap.c (267173e72dc9f967f9d2a8f3bd1e88aae0a417bb)
1/*
2 * Copyright (c) 1991 Regents of the University of California.
3 * All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 25 unchanged lines hidden (view full) ---

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
1/*
2 * Copyright (c) 1991 Regents of the University of California.
3 * All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 25 unchanged lines hidden (view full) ---

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
42 * $Id: pmap.c,v 1.73 1996/01/19 03:57:40 dyson Exp $
42 * $Id: pmap.c,v 1.74 1996/01/19 14:19:56 peter Exp $
43 */
44
45/*
46 * Derived from hp300 version by Mike Hibler, this version by William
47 * Jolitz uses a recursive map [a pde points to the page directory] to
48 * map the page tables using the pagetables themselves. This is done to
49 * reduce the impact on kernel virtual memory for lots of sparse address
50 * space, and to reduce the cost of memory to each process.

--- 313 unchanged lines hidden (view full) ---

364 vm_page_free(m);
365#else
366 m->dirty = 0;
367 vm_page_deactivate(m);
368#endif
369 }
370}
371
43 */
44
45/*
46 * Derived from hp300 version by Mike Hibler, this version by William
47 * Jolitz uses a recursive map [a pde points to the page directory] to
48 * map the page tables using the pagetables themselves. This is done to
49 * reduce the impact on kernel virtual memory for lots of sparse address
50 * space, and to reduce the cost of memory to each process.

--- 313 unchanged lines hidden (view full) ---

364 vm_page_free(m);
365#else
366 m->dirty = 0;
367 vm_page_deactivate(m);
368#endif
369 }
370}
371
372/* [ macro again?, should I force kstack into user map here? -wfj ] */
373void
374pmap_activate(pmap, pcbp)
375 register pmap_t pmap;
376 struct pcb *pcbp;
377{
378 PMAP_ACTIVATE(pmap, pcbp);
379}
380
381/*
382 * Bootstrap the system enough to run with virtual memory.
383 *
384 * On the i386 this is called after mapping has already been enabled
385 * and just syncs the pmap module with what has already been done.
386 * [We can't call it easily with mapping off since the kernel is not
387 * mapped with PA == VA, hence we would have to relocate every address
388 * from the linked base (virtual) address "KERNBASE" to the actual

--- 1782 unchanged lines hidden ---
372/*
373 * Bootstrap the system enough to run with virtual memory.
374 *
375 * On the i386 this is called after mapping has already been enabled
376 * and just syncs the pmap module with what has already been done.
377 * [We can't call it easily with mapping off since the kernel is not
378 * mapped with PA == VA, hence we would have to relocate every address
379 * from the linked base (virtual) address "KERNBASE" to the actual

--- 1782 unchanged lines hidden ---