/titanic_41/usr/src/uts/i86pc/sys/ |
H A D | machparam.h | 94 #define MMU_PAGESIZE 0x1000 /* 4096 bytes */ macro 98 #define MMU_PAGEOFFSET (MMU_PAGESIZE-1) /* Mask of address bits in page */ 100 #define MMU_PAGEOFFSET _CONST(MMU_PAGESIZE-1) /* assembler lameness */ 303 #define DEBUG_INFO_VA (KERNEL_TEXT - MMU_PAGESIZE) 304 #define GDT_VA (DEBUG_INFO_VA - MMU_PAGESIZE) 305 #define IDT_VA (GDT_VA - MMU_PAGESIZE) 306 #define KTSS_VA (IDT_VA - MMU_PAGESIZE) 307 #define DFTSS_VA (KTSS_VA - MMU_PAGESIZE)
|
H A D | vm_machparam.h | 75 #define SYSPTSIZE ((61*1024*1024) / MMU_PAGESIZE) 87 #define E_SYSPTSIZE (0x2000000 / MMU_PAGESIZE)
|
/titanic_41/usr/src/uts/i86xpv/os/ |
H A D | xen_mmu.c | 157 sz = P2ROUNDUP(sz, MMU_PAGESIZE); in xen_relocate_start_info() 159 for (off = 0; off < sz; off += MMU_PAGESIZE) { in xen_relocate_start_info() 167 for (off = 0; off < sz; off += MMU_PAGESIZE) in xen_relocate_start_info() 173 sz = P2ROUNDUP(mfn_count * sizeof (mfn_t), MMU_PAGESIZE); in xen_relocate_start_info() 174 addr = (uintptr_t)vmem_xalloc(heap_arena, sz, MMU_PAGESIZE, 0, in xen_relocate_start_info() 176 for (off = 0; off < sz; off += MMU_PAGESIZE) { in xen_relocate_start_info() 185 for (off = 0; off < sz; off += MMU_PAGESIZE) in xen_relocate_start_info() 193 sz2 = P2ROUNDUP(mmu_btop(sz) * sizeof (mfn_t), MMU_PAGESIZE); in xen_relocate_start_info() 195 mfn_list_pages_page = kmem_zalloc(MMU_PAGESIZE, VM_SLEEP); in xen_relocate_start_info() 197 for (off = 0; off < sz; off += MMU_PAGESIZE) { in xen_relocate_start_info() [all …]
|
/titanic_41/usr/src/uts/i86xpv/boot/ |
H A D | boot_xconsole.c | 39 char big_empty[MMU_PAGESIZE * 3]; /* room for 2 page aligned page */ 42 unsigned short video_fb_buf[32 * 1024 + MMU_PAGESIZE]; 43 unsigned char kb_status_buf[MMU_PAGESIZE * 2]; 88 (void) HYPERVISOR_update_va_mapping(vaddr + MMU_PAGESIZE, in bcons_init_xen() 125 for (i = 0; i < 32 * 1024; i += MMU_PAGESIZE) in bcons_init_xen() 142 (void *)((uintptr_t)HYPERVISOR_shared_info + MMU_PAGESIZE); in bcons_init_xen()
|
/titanic_41/usr/src/uts/i86pc/vm/ |
H A D | i86_mmu.c | 73 for (; pgcnt != 0; addr += MMU_PAGESIZE, ++pf, --pgcnt) { in i86devmap() 76 hat_devload(kas.a_hat, addr, MMU_PAGESIZE, pf, in i86devmap() 232 hat_devload(kas.a_hat, ptes + i * MMU_PAGESIZE, in hat_kmap_init() 233 MMU_PAGESIZE, ht->ht_pfn, in hat_kmap_init() 264 for (pg_off = 0; pg_off < LEVEL_SIZE(lvl); pg_off += MMU_PAGESIZE) { in xen_kpm_create() 337 while (psize >= MMU_PAGESIZE) { in hat_kern_alloc() 381 mmu.pwin_base = vmem_xalloc(heap_arena, nwindows * MMU_PAGESIZE, in hat_kern_alloc() 383 ASSERT(nwindows <= MMU_PAGESIZE / mmu.pte_size); in hat_kern_alloc() 384 mmu.pwin_pte_va = vmem_xalloc(heap_arena, MMU_PAGESIZE, in hat_kern_alloc() 385 MMU_PAGESIZE, 0, 0, NULL, NULL, VM_SLEEP); in hat_kern_alloc()
|
H A D | vm_machdep.c | 310 size_t mcntl0_lpsize = MMU_PAGESIZE; 311 size_t max_uheap_lpsize = MMU_PAGESIZE; 312 size_t default_uheap_lpsize = MMU_PAGESIZE; 313 size_t max_ustack_lpsize = MMU_PAGESIZE; 314 size_t default_ustack_lpsize = MMU_PAGESIZE; 315 size_t max_privmap_lpsize = MMU_PAGESIZE; 316 size_t max_uidata_lpsize = MMU_PAGESIZE; 317 size_t max_utext_lpsize = MMU_PAGESIZE; 318 size_t max_shm_lpsize = MMU_PAGESIZE; 372 size_t pgsz = MMU_PAGESIZE; in map_pgsz() [all …]
|
H A D | hat_kdi.c | 97 hat_kdi_pte = vmem_xalloc(heap_arena, MMU_PAGESIZE, MMU_PAGESIZE, 0, in hat_kdi_init() 99 hat_devload(kas.a_hat, (caddr_t)hat_kdi_pte, MMU_PAGESIZE, ht->ht_pfn, in hat_kdi_init() 228 sz = MIN(nbytes, MMU_PAGESIZE - pgoff); in kdi_prw()
|
/titanic_41/usr/src/uts/sun4u/os/ |
H A D | ppage.c | 75 static caddr_t ppmap_vaddrs[PPMAPSIZE / MMU_PAGESIZE]; 122 setsize = MMU_PAGESIZE; in ppmapinit() 130 va += MMU_PAGESIZE; in ppmapinit() 280 va = (caddr_t)(PPMAP_FAST_BASE + (MMU_PAGESIZE * MAXPP_SLOTS) * cpu); in pp_load_tlb() 309 va += MMU_PAGESIZE * vcolor; in pp_load_tlb() 324 va += MMU_PAGESIZE * stride; in pp_load_tlb() 424 nbytes = MMU_PAGESIZE; in ppcopy_kernel__relocatable() 514 if (len != MMU_PAGESIZE || !use_hw_bzero) { in pagezero()
|
/titanic_41/usr/src/uts/i86pc/os/ |
H A D | pci_cfgacc_x86.c | 78 MMU_PAGESIZE, VM_SLEEP); in pci_cfgacc_map() 81 MMU_PAGESIZE, pfn, PROT_READ | PROT_WRITE | in pci_cfgacc_map() 84 paddr_t pa_base = P2ALIGN(phys_addr, MMU_PAGESIZE); in pci_cfgacc_map() 88 (caddr_t)alloc_vaddr(MMU_PAGESIZE, MMU_PAGESIZE); in pci_cfgacc_map() 100 hat_unload(kas.a_hat, pci_cfgacc_virt_base, MMU_PAGESIZE, in pci_cfgacc_unmap()
|
H A D | fakebop.c | 285 if (a < MMU_PAGESIZE) in do_bsys_alloc() 286 a = MMU_PAGESIZE; in do_bsys_alloc() 289 size = P2ROUNDUP(size, MMU_PAGESIZE); in do_bsys_alloc() 327 pgsize = MMU_PAGESIZE; in do_bsys_alloc() 375 curr_page = do_bsys_alloc(NULL, 0, need_size, MMU_PAGESIZE); in bsetprop() 640 line = do_bsys_alloc(NULL, NULL, MMU_PAGESIZE, MMU_PAGESIZE); in boot_prop_finish() 1240 propbuf = do_bsys_alloc(NULL, NULL, MMU_PAGESIZE, 0); in build_boot_properties() 1287 boot_args = do_bsys_alloc(NULL, NULL, boot_arg_len, MMU_PAGESIZE); in build_boot_properties() 1594 va += MMU_PAGESIZE - slop; in relocate_boot_archive() 1595 len -= MMU_PAGESIZE - slop; in relocate_boot_archive() [all …]
|
H A D | ppage.c | 79 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, page_pptonum(pp), in i86_pp_map() 94 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, pfnum, in i86_va_map()
|
H A D | fastboot.c | 335 nk->fi_next_table_va += MMU_PAGESIZE; in fastboot_map_with_size() 336 nk->fi_next_table_pa += MMU_PAGESIZE; in fastboot_map_with_size() 1205 fb->fb_size = MMU_PAGESIZE; in fastboot_load_kernel() 1208 MMU_PAGESIZE, mmu_btop(fb->fb_dest_pa), in fastboot_load_kernel() 1231 size_t size = MMU_PAGESIZE * 5; in fastboot_load_kernel() 1233 size_t size = MMU_PAGESIZE * 4; in fastboot_load_kernel() 1246 MMU_PAGESIZE, 0)) == NULL) { in fastboot_load_kernel() 1266 size - MMU_PAGESIZE; in fastboot_load_kernel() 1269 MMU_PAGESIZE; in fastboot_load_kernel() 1271 MMU_PAGESIZE; in fastboot_load_kernel() [all …]
|
H A D | startup.c | 378 ((uintptr_t)P2ROUNDUP((uintptr_t)(x), (uintptr_t)MMU_PAGESIZE)) 801 *addr += MMU_PAGESIZE; in avail_filter() 802 *size -= MMU_PAGESIZE; in avail_filter() 825 *addr += MMU_PAGESIZE; in avail_filter() 826 *size -= MMU_PAGESIZE; in avail_filter() 827 len -= MMU_PAGESIZE; in avail_filter() 870 kpm_pgsz = MMU_PAGESIZE; in kpm_init() 903 ASSERT(sizeof (debug_info_t) < MMU_PAGESIZE); in init_debug_info() 906 mem = BOP_ALLOC(bootops, (caddr_t)DEBUG_INFO_VA, MMU_PAGESIZE, in init_debug_info() 907 MMU_PAGESIZE); in init_debug_info() [all …]
|
/titanic_41/usr/src/uts/sun4u/vm/ |
H A D | mach_vm_dep.c | 83 {MMU_PAGESIZE, MMU_PAGESHIFT, 0, MMU_PAGESIZE >> MMU_PAGESHIFT}, 114 size_t default_uheap_lpsize = MMU_PAGESIZE; 116 size_t default_ustack_lpsize = MMU_PAGESIZE; 118 size_t max_uidata_lpsize = MMU_PAGESIZE;
|
/titanic_41/usr/src/lib/libbc/inc/include/sun4/ |
H A D | param.h | 100 #define MMU_PAGESIZE 0x2000 /* 8192 bytes */ macro 102 #define MMU_PAGEOFFSET (MMU_PAGESIZE-1)/* Mask of address bits in page */ 192 #define NBPG MMU_PAGESIZE
|
/titanic_41/usr/src/uts/sun4/sys/ |
H A D | trapstat.h | 127 #define TSTAT_PROBE_SIZE (TSTAT_PROBE_NPAGES * MMU_PAGESIZE) 179 ((sizeof (tstat_instr_t) + MMU_PAGESIZE - 1) & ~(MMU_PAGESIZE - 1)) 227 #define TSTAT_INSTR_SIZE (TSTAT_INSTR_PAGES * MMU_PAGESIZE)
|
/titanic_41/usr/src/uts/sun4u/cpu/ |
H A D | us3_common_mmu.c | 302 pgsz1 = page_szc(MMU_PAGESIZE); in mmu_fixup_large_pages() 310 pgsz0 = page_szc(MMU_PAGESIZE); in mmu_fixup_large_pages() 312 pgsz1 = page_szc(MMU_PAGESIZE); in mmu_fixup_large_pages() 382 pgsz1 = page_szc(MMU_PAGESIZE); in mmu_setup_page_sizes() 398 pgsz0 = page_szc(MMU_PAGESIZE); in mmu_setup_page_sizes() 400 pgsz1 = page_szc(MMU_PAGESIZE); in mmu_setup_page_sizes() 597 return (MMU_PAGESIZE); in mmu_get_kernel_lpsize()
|
/titanic_41/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | bitmap.c | 177 lboff += MMU_PAGESIZE; in search_buf_pages() 240 for (pages = mmu_btop(size); pages--; virt += MMU_PAGESIZE) { in map_free_phys() 247 err = prom_map_phys(-1, MMU_PAGESIZE, virt, phys); in map_free_phys() 519 phys_xcopy(oldphys, newphys, MMU_PAGESIZE); in move_page() 520 err = prom_remap(MMU_PAGESIZE, vaddr, newphys); in move_page() 545 ostk_high = (caddr_t)&estack - MMU_PAGESIZE; in cb_relocate() 555 for (virt = saddr; virt < eaddr; virt += MMU_PAGESIZE, ppn++) { in cb_relocate()
|
H A D | pages.c | 83 MMU_PAGESIZE); in shuffle_pages() 110 for (tail = vaddr + bytes; vaddr < tail; vaddr += MMU_PAGESIZE) { in mapin_buf_pages() 114 off += MMU_PAGESIZE; in mapin_buf_pages() 135 vaddr += MMU_PAGESIZE; in mapin_dst_pages()
|
/titanic_41/usr/src/uts/sun4/vm/ |
H A D | vm_dep.c | 518 size_t pgsz = MMU_PAGESIZE; in map_pgszheap() 554 size_t pgsz = MMU_PAGESIZE; in map_pgszstk() 613 size_t pgsz = MMU_PAGESIZE; in map_pgsz() 618 return (MMU_PAGESIZE); in map_pgsz() 627 if (max_ustack_lpsize > MMU_PAGESIZE) { in map_pgsz() 633 if (max_uheap_lpsize > MMU_PAGESIZE) { in map_pgsz() 655 if (physmem < min_physmem || max_lpsize <= MMU_PAGESIZE) { in map_szcvec() 935 page_colors = ecache_setsize / MMU_PAGESIZE; in page_coloring_init() 938 vac_colors = vac_size / MMU_PAGESIZE; in page_coloring_init() 965 cpu_page_colors = cpu_setsize / MMU_PAGESIZE; in page_coloring_init()
|
/titanic_41/usr/src/uts/sun4v/sys/ |
H A D | machparam.h | 98 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT) macro 99 #define MMU_PAGEOFFSET (MMU_PAGESIZE - 1) 332 #define CPU_ALLOC_SIZE MMU_PAGESIZE
|
/titanic_41/usr/src/psm/stand/boot/sparc/sun4/sys/ |
H A D | machparam.h | 55 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT) macro 56 #define MMU_PAGEOFFSET (MMU_PAGESIZE - 1)
|
/titanic_41/usr/src/uts/sun4v/os/ |
H A D | ppage.c | 72 static caddr_t ppmap_vaddrs[PPMAPSIZE / MMU_PAGESIZE]; 116 (caddr_t)((uintptr_t)va + (nset * MMU_PAGESIZE)); in ppmapinit() 244 nbytes = MMU_PAGESIZE; in ppcopy_kernel__relocatable() 324 if (len != MMU_PAGESIZE || !use_hw_bzero) { in pagezero()
|
/titanic_41/usr/src/uts/sun4u/sys/ |
H A D | machparam.h | 138 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT) macro 139 #define MMU_PAGEOFFSET (MMU_PAGESIZE - 1) 362 #define CPU_ALLOC_SIZE MMU_PAGESIZE
|
/titanic_41/usr/src/uts/intel/ia32/sys/ |
H A D | pte.h | 87 #define PTSIZE (NPTEPERPT * MMU_PAGESIZE) /* bytes mapped */ 116 #define PTSIZE (NPTEPERPT * MMU_PAGESIZE) /* bytes mapped */
|