pmap.h (157615) | pmap.h (158531) |
---|---|
1/*- 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * the Systems Programming Group of the University of Utah Computer 7 * Science Department and William Jolitz of UUNET Technologies Inc. 8 * --- 30 unchanged lines hidden (view full) --- 39 * map the page tables using the pagetables themselves. This is done to 40 * reduce the impact on kernel virtual memory for lots of sparse address 41 * space, and to reduce the cost of memory to each process. 42 * 43 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 44 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 45 * from: FreeBSD: src/sys/i386/include/pmap.h,v 1.70 2000/11/30 46 * | 1/*- 2 * Copyright (c) 1991 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * the Systems Programming Group of the University of Utah Computer 7 * Science Department and William Jolitz of UUNET Technologies Inc. 8 * --- 30 unchanged lines hidden (view full) --- 39 * map the page tables using the pagetables themselves. This is done to 40 * reduce the impact on kernel virtual memory for lots of sparse address 41 * space, and to reduce the cost of memory to each process. 42 * 43 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 44 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 45 * from: FreeBSD: src/sys/i386/include/pmap.h,v 1.70 2000/11/30 46 * |
47 * $FreeBSD: head/sys/arm/include/pmap.h 157615 2006-04-09 20:03:03Z cognet $ | 47 * $FreeBSD: head/sys/arm/include/pmap.h 158531 2006-05-13 23:41:16Z cognet $ |
48 */ 49 50#ifndef _MACHINE_PMAP_H_ 51#define _MACHINE_PMAP_H_ 52 53#include <machine/pte.h> 54 55/* --- 271 unchanged lines hidden (view full) --- 327#define L2_S_CACHE_MASK L2_S_CACHE_MASK_xscale 328 329#define L1_S_PROTO L1_S_PROTO_xscale 330#define L1_C_PROTO L1_C_PROTO_xscale 331#define L2_S_PROTO L2_S_PROTO_xscale 332 333#endif /* ARM_NMMUS > 1 */ 334 | 48 */ 49 50#ifndef _MACHINE_PMAP_H_ 51#define _MACHINE_PMAP_H_ 52 53#include <machine/pte.h> 54 55/* --- 271 unchanged lines hidden (view full) --- 327#define L2_S_CACHE_MASK L2_S_CACHE_MASK_xscale 328 329#define L1_S_PROTO L1_S_PROTO_xscale 330#define L1_C_PROTO L1_C_PROTO_xscale 331#define L2_S_PROTO L2_S_PROTO_xscale 332 333#endif /* ARM_NMMUS > 1 */ 334 |
335#ifdef SKYEYE_WORKAROUNDS 336#define PMAP_NEEDS_PTE_SYNC 1 337#define PMAP_INCLUDE_PTE_SYNC 338#else |
|
335#if (ARM_MMU_SA1 == 1) && (ARM_NMMUS == 1) 336#define PMAP_NEEDS_PTE_SYNC 1 337#define PMAP_INCLUDE_PTE_SYNC 338#elif (ARM_MMU_SA1 == 0) 339#define PMAP_NEEDS_PTE_SYNC 0 340#endif | 339#if (ARM_MMU_SA1 == 1) && (ARM_NMMUS == 1) 340#define PMAP_NEEDS_PTE_SYNC 1 341#define PMAP_INCLUDE_PTE_SYNC 342#elif (ARM_MMU_SA1 == 0) 343#define PMAP_NEEDS_PTE_SYNC 0 344#endif |
345#endif |
|
341 342/* 343 * These macros return various bits based on kernel/user and protection. 344 * Note that the compiler will usually fold these at compile time. 345 */ 346#define L1_S_PROT(ku, pr) ((((ku) == PTE_USER) ? L1_S_PROT_U : 0) | \ 347 (((pr) & VM_PROT_WRITE) ? L1_S_PROT_W : 0)) 348 --- 187 unchanged lines hidden --- | 346 347/* 348 * These macros return various bits based on kernel/user and protection. 349 * Note that the compiler will usually fold these at compile time. 350 */ 351#define L1_S_PROT(ku, pr) ((((ku) == PTE_USER) ? L1_S_PROT_U : 0) | \ 352 (((pr) & VM_PROT_WRITE) ? L1_S_PROT_W : 0)) 353 --- 187 unchanged lines hidden --- |