Home
last modified time | relevance | path

Searched refs:MMU_PAGESIZE (Results 1 – 25 of 120) sorted by relevance

12345

/illumos-gate/usr/src/uts/i86pc/sys/
H A Dmachparam.h91 #define MMU_PAGESIZE 0x1000 /* 4096 bytes */ macro
95 #define MMU_PAGEOFFSET (MMU_PAGESIZE-1) /* Mask of address bits in page */
97 #define MMU_PAGEOFFSET _CONST(MMU_PAGESIZE-1) /* assembler lameness */
163 #define DEBUG_INFO_VA (KERNEL_TEXT - MMU_PAGESIZE)
164 #define GDT_VA (DEBUG_INFO_VA - MMU_PAGESIZE)
165 #define IDT_VA (GDT_VA - MMU_PAGESIZE)
166 #define LDT_VA (IDT_VA - (16 * MMU_PAGESIZE))
167 #define KTSS_VA (LDT_VA - MMU_PAGESIZE)
168 #define DFTSS_VA (KTSS_VA - MMU_PAGESIZE)
H A Dvm_machparam.h75 #define SYSPTSIZE ((61*1024*1024) / MMU_PAGESIZE)
87 #define E_SYSPTSIZE (0x2000000 / MMU_PAGESIZE)
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxen_mmu.c157 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 …]
/illumos-gate/usr/src/uts/i86xpv/boot/
H A Dboot_xconsole.c39 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()
/illumos-gate/usr/src/uts/i86pc/vm/
H A Di86_mmu.c151 hat_devload(kas.a_hat, ptes + i * MMU_PAGESIZE, in hat_kmap_init()
152 MMU_PAGESIZE, ht->ht_pfn, in hat_kmap_init()
183 for (pg_off = 0; pg_off < LEVEL_SIZE(lvl); pg_off += MMU_PAGESIZE) { in xen_kpm_create()
256 while (psize >= MMU_PAGESIZE) { in hat_kern_alloc()
300 mmu.pwin_base = vmem_xalloc(heap_arena, nwindows * MMU_PAGESIZE, in hat_kern_alloc()
302 ASSERT(nwindows <= MMU_PAGESIZE / mmu.pte_size); in hat_kern_alloc()
303 mmu.pwin_pte_va = vmem_xalloc(heap_arena, MMU_PAGESIZE, in hat_kern_alloc()
304 MMU_PAGESIZE, 0, 0, NULL, NULL, VM_SLEEP); in hat_kern_alloc()
467 tr_mmu_flush_user_range(addr, MMU_PAGESIZE, in invpcid()
468 MMU_PAGESIZE, CPU->cpu_m.mcpu_kpti.kf_user_cr3); in invpcid()
H A Dvm_machdep.c313 size_t mcntl0_lpsize = MMU_PAGESIZE;
314 size_t max_uheap_lpsize = MMU_PAGESIZE;
315 size_t default_uheap_lpsize = MMU_PAGESIZE;
316 size_t max_ustack_lpsize = MMU_PAGESIZE;
317 size_t default_ustack_lpsize = MMU_PAGESIZE;
318 size_t max_privmap_lpsize = MMU_PAGESIZE;
319 size_t max_uidata_lpsize = MMU_PAGESIZE;
320 size_t max_utext_lpsize = MMU_PAGESIZE;
321 size_t max_shm_lpsize = MMU_PAGESIZE;
376 for (; pgcnt != 0; addr += MMU_PAGESIZE, ++pf, --pgcnt) { in i86devmap()
[all …]
H A Dhat_kdi.c97 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()
/illumos-gate/usr/src/uts/sun4u/os/
H A Dppage.c75 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()
/illumos-gate/usr/src/uts/intel/kdi/
H A Dkdi_idthdl.S93 and $(~(MMU_PAGESIZE - 1)), %r13; \
108 and $(~(MMU_PAGESIZE - 1)), %r13; \
110 and $(~(MMU_PAGESIZE - 1)), %r14; \
212 DGDEF3(kdi_idt, 16 * NIDT, MMU_PAGESIZE)
213 .fill MMU_PAGESIZE, 1, 0
217 .align MMU_PAGESIZE
319 .align MMU_PAGESIZE
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_cfgacc_x86.c78 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 Dfakebop.c285 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()
700 line = do_bsys_alloc(NULL, NULL, MMU_PAGESIZE, MMU_PAGESIZE); in read_bootenvrc()
1526 propbuf = do_bsys_alloc(NULL, NULL, MMU_PAGESIZE, 0); in build_boot_properties()
1595 boot_args = do_bsys_alloc(NULL, NULL, boot_arg_len, MMU_PAGESIZE); in build_boot_properties()
1939 va += MMU_PAGESIZE - slop; in relocate_boot_archive()
1940 len -= MMU_PAGESIZE - slop; in relocate_boot_archive()
[all …]
H A Dmp_pc.c99 (caddr_t)(uintptr_t)rm_platter_pa, MMU_PAGESIZE, in mach_cpucontext_init()
121 hat_unload(kas.a_hat, (caddr_t)(uintptr_t)rm_platter_pa, MMU_PAGESIZE, in mach_cpucontext_fini()
231 for (va = (uintptr_t)ct, len = ctsize - MMU_PAGESIZE; in mach_cpucontext_alloc_tables()
232 len >= MMU_PAGESIZE; in mach_cpucontext_alloc_tables()
233 len -= MMU_PAGESIZE, va += MMU_PAGESIZE) { in mach_cpucontext_alloc_tables()
H A Dfastboot.c327 nk->fi_next_table_va += MMU_PAGESIZE; in fastboot_map_with_size()
328 nk->fi_next_table_pa += MMU_PAGESIZE; in fastboot_map_with_size()
1193 fb->fb_size = MMU_PAGESIZE; in fastboot_load_kernel()
1196 MMU_PAGESIZE, mmu_btop(fb->fb_dest_pa), in fastboot_load_kernel()
1218 size_t size = MMU_PAGESIZE * 5; in fastboot_load_kernel()
1230 MMU_PAGESIZE, 0)) == 0) { in fastboot_load_kernel()
1250 size - MMU_PAGESIZE; in fastboot_load_kernel()
1253 MMU_PAGESIZE; in fastboot_load_kernel()
1255 MMU_PAGESIZE; in fastboot_load_kernel()
1290 MMU_PAGESIZE, mmu_btop(fb->fb_dest_pa), in fastboot_xc_func()
[all …]
H A Dppage.c77 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, page_pptonum(pp), in i86_pp_map()
92 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, pfnum, in i86_va_map()
/illumos-gate/usr/src/uts/sun4u/vm/
H A Dmach_vm_dep.c84 {MMU_PAGESIZE, MMU_PAGESHIFT, 0, MMU_PAGESIZE >> MMU_PAGESHIFT},
115 size_t default_uheap_lpsize = MMU_PAGESIZE;
117 size_t default_ustack_lpsize = MMU_PAGESIZE;
119 size_t max_uidata_lpsize = MMU_PAGESIZE;
/illumos-gate/usr/src/uts/sun4u/cpu/
H A Dus3_common_mmu.c302 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()
/illumos-gate/usr/src/uts/sun4/sys/
H A Dtrapstat.h127 #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)
/illumos-gate/usr/src/uts/sun4/vm/
H A Dvm_dep.c457 size_t pgsz = MMU_PAGESIZE; in map_pgszheap()
493 size_t pgsz = MMU_PAGESIZE; in map_pgszstk()
552 size_t pgsz = MMU_PAGESIZE; in map_pgsz()
557 return (MMU_PAGESIZE); in map_pgsz()
566 if (max_ustack_lpsize > MMU_PAGESIZE) { in map_pgsz()
572 if (max_uheap_lpsize > MMU_PAGESIZE) { in map_pgsz()
594 if (physmem < min_physmem || max_lpsize <= MMU_PAGESIZE) { in map_szcvec()
874 page_colors = ecache_setsize / MMU_PAGESIZE; in page_coloring_init()
877 vac_colors = vac_size / MMU_PAGESIZE; in page_coloring_init()
904 cpu_page_colors = cpu_setsize / MMU_PAGESIZE; in page_coloring_init()
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dbitmap.c177 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 Dpages.c83 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()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmachparam.h98 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT) macro
99 #define MMU_PAGEOFFSET (MMU_PAGESIZE - 1)
332 #define CPU_ALLOC_SIZE MMU_PAGESIZE
/illumos-gate/usr/src/uts/sun4v/os/
H A Dppage.c72 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()
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachparam.h130 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT) macro
131 #define MMU_PAGEOFFSET (MMU_PAGESIZE - 1)
350 #define CPU_ALLOC_SIZE MMU_PAGESIZE
/illumos-gate/usr/src/psm/stand/boot/sparc/sun4/sys/
H A Dmachparam.h55 #define MMU_PAGESIZE (1<<MMU_PAGESHIFT) macro
56 #define MMU_PAGEOFFSET (MMU_PAGESIZE - 1)
/illumos-gate/usr/src/uts/intel/sys/
H A Dpte.h85 #define PTSIZE (NPTEPERPT * MMU_PAGESIZE) /* bytes mapped */
114 #define PTSIZE (NPTEPERPT * MMU_PAGESIZE) /* bytes mapped */

12345