pmap.c (e9cb1037da59f432506f8f5a5c630e10453a4d73) pmap.c (51ef421d928597792acfe581f46b062166e7160d)
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 * Copyright (c) 2005 Alan L. Cox <alc@cs.rice.edu>

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

101 * necessary. This module is given full information as
102 * to which processors are currently using which maps,
103 * and to when physical maps must be made correct.
104 */
105
106#include "opt_cpu.h"
107#include "opt_pmap.h"
108#include "opt_msgbuf.h"
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 * Copyright (c) 2005 Alan L. Cox <alc@cs.rice.edu>

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

101 * necessary. This module is given full information as
102 * to which processors are currently using which maps,
103 * and to when physical maps must be made correct.
104 */
105
106#include "opt_cpu.h"
107#include "opt_pmap.h"
108#include "opt_msgbuf.h"
109#include "opt_xbox.h"
109
110#include <sys/param.h>
111#include <sys/systm.h>
112#include <sys/kernel.h>
113#include <sys/lock.h>
114#include <sys/malloc.h>
115#include <sys/mman.h>
116#include <sys/msgbuf.h>

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

139#include <machine/cputypes.h>
140#include <machine/md_var.h>
141#include <machine/pcb.h>
142#include <machine/specialreg.h>
143#ifdef SMP
144#include <machine/smp.h>
145#endif
146
110
111#include <sys/param.h>
112#include <sys/systm.h>
113#include <sys/kernel.h>
114#include <sys/lock.h>
115#include <sys/malloc.h>
116#include <sys/mman.h>
117#include <sys/msgbuf.h>

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

140#include <machine/cputypes.h>
141#include <machine/md_var.h>
142#include <machine/pcb.h>
143#include <machine/specialreg.h>
144#ifdef SMP
145#include <machine/smp.h>
146#endif
147
148#ifdef XBOX
149#include <machine/xbox.h>
150#endif
151
147#if !defined(CPU_DISABLE_SSE) && defined(I686_CPU)
148#define CPU_ENABLE_SSE
149#endif
150
151#ifndef PMAP_SHPGPERPROC
152#define PMAP_SHPGPERPROC 200
153#endif
154

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

388 SYSMAP(pt_entry_t *, PMAP1, PADDR1, 1);
389 SYSMAP(pt_entry_t *, PMAP2, PADDR2, 1);
390
391 mtx_init(&PMAP2mutex, "PMAP2", NULL, MTX_DEF);
392
393 virtual_avail = va;
394
395 *CMAP1 = 0;
152#if !defined(CPU_DISABLE_SSE) && defined(I686_CPU)
153#define CPU_ENABLE_SSE
154#endif
155
156#ifndef PMAP_SHPGPERPROC
157#define PMAP_SHPGPERPROC 200
158#endif
159

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

393 SYSMAP(pt_entry_t *, PMAP1, PADDR1, 1);
394 SYSMAP(pt_entry_t *, PMAP2, PADDR2, 1);
395
396 mtx_init(&PMAP2mutex, "PMAP2", NULL, MTX_DEF);
397
398 virtual_avail = va;
399
400 *CMAP1 = 0;
401
402#ifdef XBOX
403 /* FIXME: This is gross, but needed for the XBOX. Since we are in such
404 * an early stadium, we cannot yet neatly map video memory ... :-(
405 * Better fixes are very welcome! */
406 if (!arch_i386_is_xbox)
407#endif
396 for (i = 0; i < NKPT; i++)
397 PTD[i] = 0;
398
399 /* Turn on PG_G on kernel page(s) */
400 pmap_set_pg();
401}
402
403/*

--- 2731 unchanged lines hidden ---
408 for (i = 0; i < NKPT; i++)
409 PTD[i] = 0;
410
411 /* Turn on PG_G on kernel page(s) */
412 pmap_set_pg();
413}
414
415/*

--- 2731 unchanged lines hidden ---