pmap-v6.h (295166) | pmap-v6.h (295168) |
---|---|
1/*- 2 * Copyright 2014 Svatopluk Kraus <onwahe@gmail.com> 3 * Copyright 2014 Michal Meloun <meloun@miracle.cz> 4 * Copyright (c) 1991 Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Systems Programming Group of the University of Utah Computer --- 28 unchanged lines hidden (view full) --- 37 * map the page tables using the pagetables themselves. This is done to 38 * reduce the impact on kernel virtual memory for lots of sparse address 39 * space, and to reduce the cost of memory to each process. 40 * 41 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 42 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 43 * from: FreeBSD: src/sys/i386/include/pmap.h,v 1.70 2000/11/30 44 * | 1/*- 2 * Copyright 2014 Svatopluk Kraus <onwahe@gmail.com> 3 * Copyright 2014 Michal Meloun <meloun@miracle.cz> 4 * Copyright (c) 1991 Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Systems Programming Group of the University of Utah Computer --- 28 unchanged lines hidden (view full) --- 37 * map the page tables using the pagetables themselves. This is done to 38 * reduce the impact on kernel virtual memory for lots of sparse address 39 * space, and to reduce the cost of memory to each process. 40 * 41 * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 42 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 43 * from: FreeBSD: src/sys/i386/include/pmap.h,v 1.70 2000/11/30 44 * |
45 * $FreeBSD: head/sys/arm/include/pmap-v6.h 295166 2016-02-02 21:10:55Z skra $ | 45 * $FreeBSD: head/sys/arm/include/pmap-v6.h 295168 2016-02-02 21:17:25Z skra $ |
46 */ 47 48#ifndef _MACHINE_PMAP_H_ 49#define _MACHINE_PMAP_H_ 50 51#include <sys/queue.h> 52#include <sys/_cpuset.h> 53#include <sys/_lock.h> --- 159 unchanged lines hidden (view full) --- 213 */ 214void pmap_bootstrap_prepare(vm_paddr_t ); 215vm_paddr_t pmap_preboot_get_pages(u_int ); 216void pmap_preboot_map_pages(vm_paddr_t , vm_offset_t , u_int ); 217vm_offset_t pmap_preboot_reserve_pages(u_int ); 218vm_offset_t pmap_preboot_get_vpages(u_int ); 219void pmap_preboot_map_attr(vm_paddr_t, vm_offset_t, vm_size_t, vm_prot_t, 220 vm_memattr_t); | 46 */ 47 48#ifndef _MACHINE_PMAP_H_ 49#define _MACHINE_PMAP_H_ 50 51#include <sys/queue.h> 52#include <sys/_cpuset.h> 53#include <sys/_lock.h> --- 159 unchanged lines hidden (view full) --- 213 */ 214void pmap_bootstrap_prepare(vm_paddr_t ); 215vm_paddr_t pmap_preboot_get_pages(u_int ); 216void pmap_preboot_map_pages(vm_paddr_t , vm_offset_t , u_int ); 217vm_offset_t pmap_preboot_reserve_pages(u_int ); 218vm_offset_t pmap_preboot_get_vpages(u_int ); 219void pmap_preboot_map_attr(vm_paddr_t, vm_offset_t, vm_size_t, vm_prot_t, 220 vm_memattr_t); |
221static __inline void 222pmap_map_chunk(vm_offset_t l1pt, vm_offset_t va, vm_offset_t pa, 223 vm_size_t size, int prot, int cache) 224{ 225 pmap_preboot_map_attr(pa, va, size, prot, cache); 226} | |
227 228#endif /* _KERNEL */ 229 230// ----------------- TO BE DELETED --------------------------------------------- 231#include <machine/pte-v6.h> 232 233#ifdef _KERNEL 234 --- 16 unchanged lines hidden (view full) --- 251 */ 252#define PMAP_DOMAIN_KERNEL 0 /* The kernel uses domain #0 */ 253 254/* 255 * sys/arm/arm/cpufunc.c 256 */ 257void vector_page_setprot(int); 258 | 221 222#endif /* _KERNEL */ 223 224// ----------------- TO BE DELETED --------------------------------------------- 225#include <machine/pte-v6.h> 226 227#ifdef _KERNEL 228 --- 16 unchanged lines hidden (view full) --- 245 */ 246#define PMAP_DOMAIN_KERNEL 0 /* The kernel uses domain #0 */ 247 248/* 249 * sys/arm/arm/cpufunc.c 250 */ 251void vector_page_setprot(int); 252 |
259/* 260 * sys/arm/arm/bus_space_generic.c (just comment) 261 * sys/arm/arm/devmap.c 262 * sys/arm/arm/pmap.c (just comment) 263 * sys/arm/at91/at91_machdep.c 264 * sys/arm/cavium/cns11xx/econa_machdep.c 265 * sys/arm/freescale/imx/imx6_machdep.c (just comment) 266 * sys/arm/mv/orion/db88f5xxx.c 267 * sys/arm/mv/mv_localbus.c 268 * sys/arm/mv/mv_machdep.c 269 * sys/arm/mv/mv_pci.c 270 * sys/arm/s3c2xx0/s3c24x0_machdep.c 271 * sys/arm/versatile/versatile_machdep.c 272 * sys/arm/xscale/ixp425/avila_machdep.c 273 * sys/arm/xscale/i8134x/crb_machdep.c 274 * sys/arm/xscale/i80321/ep80219_machdep.c 275 * sys/arm/xscale/i80321/iq31244_machdep.c 276 * sys/arm/xscale/pxa/pxa_machdep.c 277 */ 278#define PTE_DEVICE PTE2_ATTR_DEVICE 279 280 281 | |
282#endif /* _KERNEL */ 283// ----------------------------------------------------------------------------- 284 285#endif /* !_MACHINE_PMAP_H_ */ | 253#endif /* _KERNEL */ 254// ----------------------------------------------------------------------------- 255 256#endif /* !_MACHINE_PMAP_H_ */ |