Searched refs:PAGE_4K_SIZE (Results 1 – 10 of 10) sorted by relevance
/DragonOS-0.1.2/kernel/src/mm/ |
D | mmio.c | 31 size = PAGE_4K_SIZE; in mmio_create() 62 for (uint32_t i = len_2m; i < size; i += PAGE_4K_SIZE) in mmio_create() 64 … retval = mm_create_vma(&initial_mm, buddy_region->vaddr + i, PAGE_4K_SIZE, vm_flags, NULL, NULL); in mmio_create()
|
D | mmap.c | 34 ent->num_PTE = (length + PAGE_4K_SIZE - 1) >> PAGE_4K_SHIFT; in mm_calculate_entry_num() 105 ul *virt_addr = kmalloc(PAGE_4K_SIZE, 0); in mm_map_proc_page_table() 106 memset(virt_addr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table() 122 ul *virt_addr = kmalloc(PAGE_4K_SIZE, 0); in mm_map_proc_page_table() 123 memset(virt_addr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table() 143 uint64_t *vaddr = kmalloc(PAGE_4K_SIZE, 0); in mm_map_proc_page_table() 144 memset(vaddr, 0, PAGE_4K_SIZE); in mm_map_proc_page_table() 166 length_mapped += PAGE_4K_SIZE; in mm_map_proc_page_table() 274 length_unmapped += PAGE_4K_SIZE; in mm_unmap_proc_table() 324 if (unlikely(vaddr & (PAGE_4K_SIZE - 1))) in mm_create_vma() [all …]
|
D | mm.h | 27 #define PAGE_4K_SIZE (1UL << PAGE_4K_SHIFT) macro 32 #define PAGE_4K_MASK (~(PAGE_4K_SIZE - 1)) 36 #define PAGE_4K_ALIGN(addr) (((unsigned long)(addr) + PAGE_4K_SIZE - 1) & PAGE_4K_MASK)
|
D | mm.c | 107 …_struct.bmp = (unsigned long *)((memory_management_struct.start_brk + PAGE_4K_SIZE - 1) & PAGE_4K_… in mm_init() 117 …ong)memory_management_struct.bmp + memory_management_struct.bmp_len + PAGE_4K_SIZE - 1) & PAGE_4K_… in mm_init() 126 …ent_struct.pages_struct + memory_management_struct.pages_struct_len + PAGE_4K_SIZE - 1) & PAGE_4K_… in mm_init() 509 void *pdpt = kmalloc(PAGE_4K_SIZE, 0); in page_table_init() 511 memset(pdpt, 0, PAGE_4K_SIZE); in page_table_init()
|
/DragonOS-0.1.2/kernel/src/process/ |
D | process.c | 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() [all …]
|
D | fork.c | 231 new_mms->pgd = (pml4t_t *)virt_2_phys(kmalloc(PAGE_4K_SIZE, 0)); in process_copy_mm() 233 memset(phys_2_virt(new_mms->pgd), 0, PAGE_4K_SIZE / 2); in process_copy_mm() 237 PAGE_4K_SIZE / 2); in process_copy_mm()
|
/DragonOS-0.1.2/kernel/src/filesystem/VFS/ |
D | VFS.c | 251 pathlen = strnlen_user(path, PAGE_4K_SIZE - 1); in vfs_mkdir() 253 pathlen = strnlen(path, PAGE_4K_SIZE - 1); in vfs_mkdir() 380 path_len = strnlen_user(filename, PAGE_4K_SIZE) + 1; in do_open() 382 path_len = strnlen(filename, PAGE_4K_SIZE) + 1; in do_open() 386 else if (path_len >= PAGE_4K_SIZE) // 名称过长 in do_open() 634 pathlen = strnlen_user(path, PAGE_4K_SIZE - 1); in vfs_rmdir() 636 pathlen = strnlen(path, PAGE_4K_SIZE - 1); in vfs_rmdir() 786 pathlen = strnlen_user(pathname, PAGE_4K_SIZE - 1); in do_unlink_at() 788 pathlen = strnlen(pathname, PAGE_4K_SIZE - 1); in do_unlink_at()
|
/DragonOS-0.1.2/kernel/src/syscall/ |
D | syscall.c | 379 dest_path_len = strnlen_user(dest_path, PAGE_4K_SIZE); in sys_chdir() 382 dest_path_len = strnlen(dest_path, PAGE_4K_SIZE); in sys_chdir() 387 else if (dest_path_len >= PAGE_4K_SIZE) in sys_chdir() 461 int path_len = strnlen_user(user_path, PAGE_4K_SIZE); in sys_execve() 464 if (path_len >= PAGE_4K_SIZE) in sys_execve()
|
/DragonOS-0.1.2/user/libs/libc/src/ |
D | malloc.c | 14 #define PAGE_4K_SIZE (1UL << PAGE_4K_SHIFT) macro 19 #define PAGE_4K_MASK (~(PAGE_4K_SIZE - 1)) 23 #define PAGE_4K_ALIGN(addr) (((unsigned long)(addr) + PAGE_4K_SIZE - 1) & PAGE_4K_MASK)
|
/DragonOS-0.1.2/kernel/src/filesystem/fat32/ |
D | fat32.c | 1393 uint32_t len = vfat_striptail_len(strnlen(name, PAGE_4K_SIZE - 1), name); in vfat_find()
|