Home
last modified time | relevance | path

Searched refs:phdr (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/kernel/src/process/
Dprocess.c230 Elf64_Phdr *phdr = buf; in process_load_elf_file() local
233 for (int i = 0; i < ehdr.e_phnum; ++i, ++phdr) in process_load_elf_file()
239 if (phdr->p_type != PT_LOAD) in process_load_elf_file()
242 int64_t remain_mem_size = phdr->p_memsz; in process_load_elf_file()
243 int64_t remain_file_size = phdr->p_filesz; in process_load_elf_file()
244 pos = phdr->p_offset; in process_load_elf_file()
250 virt_base = phdr->p_vaddr & PAGE_2M_MASK; in process_load_elf_file()
252 virt_base = phdr->p_vaddr & PAGE_4K_MASK; in process_load_elf_file()
254 beginning_offset = phdr->p_vaddr - virt_base; in process_load_elf_file()