Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/acpi/
Dacpi.c48 …rs_map_phys(acpi_description_header_base + PAGE_2M_SIZE * i, (*(ent + i)) & PAGE_2M_MASK, PAGE_2M_… in acpi_iter_SDT()
49 …t acpi_system_description_table_header_t *)((ul)(acpi_description_header_base + PAGE_2M_SIZE * i)); in acpi_iter_SDT()
179 mmio_create(PAGE_2M_SIZE, VM_IO | VM_DONTCOPY, &acpi_rsdt_virt_addr_base, &size); in acpi_init()
184 rs_map_phys(acpi_rsdt_virt_addr_base, paddr, PAGE_2M_SIZE, PAGE_KERNEL_PAGE); in acpi_init()
198 mmio_create(PAGE_2M_SIZE, VM_IO | VM_DONTCOPY, &acpi_description_header_base, &size); in acpi_init()
207 rs_map_phys(acpi_description_header_base, paddr, PAGE_2M_SIZE, PAGE_KERNEL_PAGE); in acpi_init()
218 mmio_create(PAGE_2M_SIZE, VM_IO | VM_DONTCOPY, &acpi_rsdt_virt_addr_base, &size); in acpi_init()
226 rs_map_phys(acpi_rsdt_virt_addr_base, paddr, PAGE_2M_SIZE, PAGE_KERNEL_PAGE); in acpi_init()
241 mmio_create(PAGE_2M_SIZE, VM_IO | VM_DONTCOPY, &acpi_description_header_base, &size); in acpi_init()
250 rs_map_phys(acpi_description_header_base, paddr, PAGE_2M_SIZE, PAGE_KERNEL_PAGE); in acpi_init()
/DragonOS-0.1.8/kernel/src/mm/
Dmm.h27 #define PAGE_2M_SIZE (1UL << PAGE_2M_SHIFT) macro
32 #define PAGE_2M_MASK (~(PAGE_2M_SIZE - 1))
36 #define PAGE_2M_ALIGN(addr) (((unsigned long)(addr) + PAGE_2M_SIZE - 1) & PAGE_2M_MASK)
/DragonOS-0.1.8/user/libs/libc/src/
Dmalloc.c15 #define PAGE_2M_SIZE (1UL << PAGE_2M_SHIFT) macro
20 #define PAGE_2M_MASK (~(PAGE_2M_SIZE - 1))
24 #define PAGE_2M_ALIGN(addr) (((unsigned long)(addr) + PAGE_2M_SIZE - 1) & PAGE_2M_MASK)
357 …nd->length == brk_max_addr && (uint64_t)malloc_free_list_end <= brk_max_addr - (PAGE_2M_SIZE << 1)) in release_brk()
359 … int64_t delta = ((brk_max_addr - (uint64_t)malloc_free_list_end) & PAGE_2M_MASK) - PAGE_2M_SIZE; in release_brk()
387 if (count_last_free_size > PAGE_2M_SIZE) in free()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci.c29 rs_map_phys(AHCI_MAPPING_BASE, (ul)(bar5)&PAGE_2M_MASK, PAGE_2M_SIZE, PAGE_KERNEL_PAGE); in ahci_cpp_init()
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.c89 rs_map_phys((ul)apic_ioapic_map.virtual_index_addr, apic_ioapic_map.addr_phys, PAGE_2M_SIZE, in apic_io_apic_init()
282 …rs_map_phys(APIC_LOCAL_APIC_VIRT_BASE_ADDR, (ia32_apic_base & 0x1FFFFFFFFFF000), PAGE_2M_SIZE, PAG… in apic_local_apic_init()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs16 include::bindings::bindings::{pid_t, PAGE_2M_SIZE, PAGE_4K_SIZE},
519 || (from_user && verify_area(virt_addr, PAGE_2M_SIZE as usize).is_err()) in handle()
614 || (from_user && verify_area(virt_path_ptr, PAGE_2M_SIZE as usize).is_err()) in handle()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs6 use crate::include::bindings::bindings::{PAGE_2M_SIZE, VM_DONTCOPY, VM_IO};
635 let size = bus_number_double * PAGE_2M_SIZE; in map()