pmap-v4.h (250930) | pmap-v4.h (254532) |
---|---|
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 250930 2013-05-23 12:23:18Z gber $ | 47 * $FreeBSD: head/sys/arm/include/pmap.h 254532 2013-08-19 15:12:36Z raj $ |
48 */ 49 50#ifndef _MACHINE_PMAP_H_ 51#define _MACHINE_PMAP_H_ 52 53#include <machine/pte.h> 54#include <machine/cpuconf.h> 55/* --- 329 unchanged lines hidden (view full) --- 385 * 1 0 R N 386 * 1 1 R R 387 * 388 */ 389#define L2_S_PROT_R (0) /* kernel read */ 390#define L2_S_PROT_U (L2_AP0(2)) /* user read */ 391#define L2_S_REF (L2_AP0(1)) /* reference flag */ 392 | 48 */ 49 50#ifndef _MACHINE_PMAP_H_ 51#define _MACHINE_PMAP_H_ 52 53#include <machine/pte.h> 54#include <machine/cpuconf.h> 55/* --- 329 unchanged lines hidden (view full) --- 385 * 1 0 R N 386 * 1 1 R R 387 * 388 */ 389#define L2_S_PROT_R (0) /* kernel read */ 390#define L2_S_PROT_U (L2_AP0(2)) /* user read */ 391#define L2_S_REF (L2_AP0(1)) /* reference flag */ 392 |
393#define L2_S_PROT_MASK (L2_S_PROT_U|L2_S_PROT_R) | 393#define L2_S_PROT_MASK (L2_S_PROT_U|L2_S_PROT_R|L2_APX) |
394#define L2_S_EXECUTABLE(pte) (!(pte & L2_XN)) 395#define L2_S_WRITABLE(pte) (!(pte & L2_APX)) 396#define L2_S_REFERENCED(pte) (!!(pte & L2_S_REF)) 397 398#ifndef SMP 399#define L1_S_CACHE_MASK (L1_S_TEX_MASK|L1_S_B|L1_S_C) 400#define L2_L_CACHE_MASK (L2_L_TEX_MASK|L2_B|L2_C) 401#define L2_S_CACHE_MASK (L2_S_TEX_MASK|L2_B|L2_C) --- 309 unchanged lines hidden --- | 394#define L2_S_EXECUTABLE(pte) (!(pte & L2_XN)) 395#define L2_S_WRITABLE(pte) (!(pte & L2_APX)) 396#define L2_S_REFERENCED(pte) (!!(pte & L2_S_REF)) 397 398#ifndef SMP 399#define L1_S_CACHE_MASK (L1_S_TEX_MASK|L1_S_B|L1_S_C) 400#define L2_L_CACHE_MASK (L2_L_TEX_MASK|L2_B|L2_C) 401#define L2_S_CACHE_MASK (L2_S_TEX_MASK|L2_B|L2_C) --- 309 unchanged lines hidden --- |