Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/driver/acpi/
Dacpi.c124 uint64_t paddr = 0; in acpi_init() local
165 paddr = (uint64_t)rsdt_phys_base; in acpi_init()
166 mm_map(&initial_mm, acpi_rsdt_virt_addr_base, PAGE_2M_SIZE, paddr); in acpi_init()
187 paddr = (uint64_t)acpi_RSDT_entry_phys_base; in acpi_init()
188 mm_map(&initial_mm, acpi_description_header_base, PAGE_2M_SIZE, paddr); in acpi_init()
203 paddr = (uint64_t)rsdt_phys_base; in acpi_init()
204 mm_map(&initial_mm, acpi_rsdt_virt_addr_base, PAGE_2M_SIZE, paddr); in acpi_init()
226 paddr = (uint64_t)acpi_RSDT_entry_phys_base; in acpi_init()
227 mm_map(&initial_mm, acpi_description_header_base, PAGE_2M_SIZE, paddr); in acpi_init()
/DragonOS-0.1.2/kernel/src/mm/
Dutils.c103 int8_t mm_is_2M_page(uint64_t paddr) in mm_is_2M_page() argument
105 if (likely((paddr >> PAGE_2M_SHIFT) < mm_total_2M_pages)) in mm_is_2M_page()
Dmmap.c360 int mm_map_vma(struct vm_area_struct *vma, uint64_t paddr, uint64_t offset, uint64_t length) in mm_map_vma() argument
373 pg = __create_mmio_page_struct(paddr); in mm_map_vma()
378 pg = Phy_to_2M_Page(paddr); in mm_map_vma()
412 …_proc_page_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset, paddr, len_4k, page_flag… in mm_map_vma()
431 …e_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset + mapped, paddr + mapped, len_2m, … in mm_map_vma()
447 …e_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset + mapped, paddr + mapped, len_4k, … in mm_map_vma()
473 int mm_map(struct mm_struct *mm, uint64_t vaddr, uint64_t length, uint64_t paddr) in mm_map() argument
496 retval = mm_map_vma(vma, paddr + mapped, offset, m_len); in mm_map()
516 int mm_unmap_vma(struct mm_struct *mm, struct vm_area_struct *vma, uint64_t *paddr) in mm_unmap_vma() argument
522 if (paddr != NULL) in mm_unmap_vma()
[all …]
Dinternal.h76 struct Page* __create_mmio_page_struct(uint64_t paddr);
Dmm.h467 int mm_map_vma(struct vm_area_struct *vma, uint64_t paddr, uint64_t offset, uint64_t length);
478 int mm_map(struct mm_struct *mm, uint64_t vaddr, uint64_t length, uint64_t paddr);
488 int mm_unmap_vma(struct mm_struct *mm, struct vm_area_struct *vma, uint64_t *paddr);
508 int8_t mm_is_2M_page(uint64_t paddr);
Dmm.c678 struct Page *__create_mmio_page_struct(uint64_t paddr) in __create_mmio_page_struct() argument
683 p->addr_phys = paddr; in __create_mmio_page_struct()
/DragonOS-0.1.2/kernel/src/process/
Dprocess.c285 uint64_t paddr = virt_2_phys((uint64_t)kmalloc(PAGE_4K_SIZE, 0)); in process_load_elf_file() local
292 kfree(phys_2_virt(paddr)); in process_load_elf_file()
294 mm_map(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, paddr); in process_load_elf_file()