Lines Matching refs:PAGE_4K_SIZE
176 void *buf = kmalloc(PAGE_4K_SIZE, 0); in process_load_elf_file()
177 memset(buf, 0, PAGE_4K_SIZE); in process_load_elf_file()
281 map_size = ALIGN(remain_mem_size, PAGE_4K_SIZE); in process_load_elf_file()
283 for (uint64_t off = 0; off < map_size; off += PAGE_4K_SIZE) in process_load_elf_file()
285 uint64_t paddr = virt_2_phys((uint64_t)kmalloc(PAGE_4K_SIZE, 0)); in process_load_elf_file()
288 … int val = mm_create_vma(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, VM_USER | VM_ACCESS_FLAGS, in process_load_elf_file()
294 mm_map(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, paddr); in process_load_elf_file()
297 memset((void *)(virt_base + off), 0, PAGE_4K_SIZE); in process_load_elf_file()
368 new_mms->pgd = (pml4t_t *)virt_2_phys(kmalloc(PAGE_4K_SIZE, 0)); in do_execve()
371 memset(phys_2_virt(new_mms->pgd), 0, PAGE_4K_SIZE / 2); in do_execve()
374 …_virt(new_mms->pgd) + 256, phys_2_virt(initial_proc[proc_current_cpu_id]) + 256, PAGE_4K_SIZE / 2); in do_execve()
770 case PAGE_4K_SIZE: in process_exit_mm()