pmap-v4.h (248280) | pmap-v4.h (250297) |
---|---|
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 248280 2013-03-14 20:18:12Z kib $ | 47 * $FreeBSD: head/sys/arm/include/pmap.h 250297 2013-05-06 15:30:34Z gber $ |
48 */ 49 50#ifndef _MACHINE_PMAP_H_ 51#define _MACHINE_PMAP_H_ 52 53#include <machine/pte.h> 54#include <machine/cpuconf.h> 55/* --- 291 unchanged lines hidden (view full) --- 347 348#define L1_S_PROTO L1_S_PROTO_xscale 349#define L1_C_PROTO L1_C_PROTO_xscale 350#define L2_S_PROTO L2_S_PROTO_xscale 351 352#elif (ARM_MMU_V6 + ARM_MMU_V7) != 0 353 354#define L2_S_PROT_U (L2_AP0(2)) /* user access */ | 48 */ 49 50#ifndef _MACHINE_PMAP_H_ 51#define _MACHINE_PMAP_H_ 52 53#include <machine/pte.h> 54#include <machine/cpuconf.h> 55/* --- 291 unchanged lines hidden (view full) --- 347 348#define L1_S_PROTO L1_S_PROTO_xscale 349#define L1_C_PROTO L1_C_PROTO_xscale 350#define L2_S_PROTO L2_S_PROTO_xscale 351 352#elif (ARM_MMU_V6 + ARM_MMU_V7) != 0 353 354#define L2_S_PROT_U (L2_AP0(2)) /* user access */ |
355#define L2_S_PROT_R (L2_APX|L2_AP0(1)) /* read access */ | 355#define L2_S_PROT_R (L2_AP0(1)) /* read access */ |
356 357#define L2_S_PROT_MASK (L2_S_PROT_U|L2_S_PROT_R) 358#define L2_S_WRITABLE(pte) (!(pte & L2_APX)) 359 360#ifndef SMP 361#define L1_S_CACHE_MASK (L1_S_TEX_MASK|L1_S_B|L1_S_C) 362#define L2_L_CACHE_MASK (L2_L_TEX_MASK|L2_B|L2_C) 363#define L2_S_CACHE_MASK (L2_S_TEX_MASK|L2_B|L2_C) --- 309 unchanged lines hidden --- | 356 357#define L2_S_PROT_MASK (L2_S_PROT_U|L2_S_PROT_R) 358#define L2_S_WRITABLE(pte) (!(pte & L2_APX)) 359 360#ifndef SMP 361#define L1_S_CACHE_MASK (L1_S_TEX_MASK|L1_S_B|L1_S_C) 362#define L2_L_CACHE_MASK (L2_L_TEX_MASK|L2_B|L2_C) 363#define L2_S_CACHE_MASK (L2_S_TEX_MASK|L2_B|L2_C) --- 309 unchanged lines hidden --- |