Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/mm/
Dinternal.h79 #define CROSS_2M_BOUND(val1, val2) ((val1 & PAGE_2M_MASK) != (val2 & PAGE_2M_MASK))
Dmm.h33 #define PAGE_2M_MASK (~(PAGE_2M_SIZE - 1)) macro
37 #define PAGE_2M_ALIGN(addr) (((unsigned long)(addr) + PAGE_2M_SIZE - 1) & PAGE_2M_MASK)
Dvma.c145 prev->page_offset = prev->vm_start - (prev->vm_start & PAGE_2M_MASK); in vma_insert()
Dmm.c92 …mory_management_struct.e820[i].BaseAddr + memory_management_struct.e820[i].Length) & PAGE_2M_MASK); in mm_init()
144 …emory_management_struct.e820[i].BaseAddr + memory_management_struct.e820[i].Length) & PAGE_2M_MASK; in mm_init()
Dslab.c408 … *)((memory_management_struct.end_of_struct + PAGE_2M_SIZE * i + PAGE_2M_SIZE - 1) & PAGE_2M_MASK); in slab_init()
641 void *page_base_addr = (void *)((ul)address & PAGE_2M_MASK); in kfree()
/DragonOS-0.1.2/kernel/src/driver/acpi/
Dacpi.c47 …_addr(acpi_description_header_base + PAGE_2M_SIZE * i, (*(ent + i)) & PAGE_2M_MASK, PAGE_2M_SIZE, … in acpi_iter_SDT()
157 ul rsdt_phys_base = rsdpv2->rsdp1.RsdtAddress & PAGE_2M_MASK; in acpi_init()
183 acpi_RSDT_entry_phys_base = ((ul)(rsdt->Entry)) & PAGE_2M_MASK; in acpi_init()
193 ul rsdt_phys_base = rsdpv1->RsdtAddress & PAGE_2M_MASK; in acpi_init()
222 acpi_RSDT_entry_phys_base = ((ul)(rsdt->Entry)) & PAGE_2M_MASK; in acpi_init()
/DragonOS-0.1.2/user/libs/libc/src/
Dmalloc.c20 #define PAGE_2M_MASK (~(PAGE_2M_SIZE - 1)) macro
24 #define PAGE_2M_ALIGN(addr) (((unsigned long)(addr) + PAGE_2M_SIZE - 1) & PAGE_2M_MASK)
358 … int64_t delta = ((brk_max_addr - (uint64_t)malloc_free_list_end) & PAGE_2M_MASK) - PAGE_2M_SIZE; in release_brk()
/DragonOS-0.1.2/kernel/src/driver/disk/ahci/
Dahci.c33 …>BAR5 - ((((struct pci_device_structure_general_device_t *)(ahci_devs[0]))->BAR5) & PAGE_2M_MASK)))
162 …mm_map_phys_addr(AHCI_MAPPING_BASE, (ul)(bar5)&PAGE_2M_MASK, PAGE_2M_SIZE, PAGE_KERNEL_PAGE | PAGE… in ahci_init()
/DragonOS-0.1.2/kernel/src/process/
Dprocess.c250 virt_base = phdr->p_vaddr & PAGE_2M_MASK; in process_load_elf_file()