Lines Matching refs:usize

51 static KERNEL_PML4E_NO: usize = (X86_64MMArch::PHYS_OFFSET & ((1 << 48) - 1)) >> 39;
57 kernel_code_start: usize,
58 kernel_code_end: usize,
59 kernel_data_end: usize,
60 kernel_rodata_end: usize,
61 start_brk: usize,
84 const PAGE_SHIFT: usize = 12;
87 const PAGE_ENTRY_SHIFT: usize = 9;
90 const PAGE_LEVELS: usize = 4;
95 const ENTRY_ADDRESS_SHIFT: usize = 52;
97 const ENTRY_FLAG_DEFAULT_PAGE: usize = Self::ENTRY_FLAG_PRESENT;
99 const ENTRY_FLAG_DEFAULT_TABLE: usize = Self::ENTRY_FLAG_PRESENT;
101 const ENTRY_FLAG_PRESENT: usize = 1 << 0;
103 const ENTRY_FLAG_READONLY: usize = 0;
105 const ENTRY_FLAG_READWRITE: usize = 1 << 1;
107 const ENTRY_FLAG_USER: usize = 1 << 2;
109 const ENTRY_FLAG_WRITE_THROUGH: usize = 1 << 3;
111 const ENTRY_FLAG_CACHE_DISABLE: usize = 1 << 4;
113 const ENTRY_FLAG_NO_EXEC: usize = 1 << 63;
115 const ENTRY_FLAG_EXEC: usize = 0;
119 const PHYS_OFFSET: usize = Self::PAGE_NEGATIVE_MASK + (Self::PAGE_ADDRESS_SIZE >> 1);
138 kernel_code_start: _text as usize, in init()
139 kernel_code_end: _etext as usize, in init()
140 kernel_data_end: _edata as usize, in init()
141 kernel_rodata_end: _erodata as usize, in init()
142 start_brk: _end as usize, in init()
173 let paddr: usize; in table()
229 unsafe fn init_memory_area_from_multiboot2() -> Result<usize, SystemError> { in init_memory_area_from_multiboot2()
237 &mut mb2_mem_info as *mut [multiboot_mmap_entry_t; 512] as usize as *mut c_void, in init_memory_area_from_multiboot2()
242 let mb2_count = mb2_count as usize; in init_memory_area_from_multiboot2()
252 total_mem_size += mb2_mem_info[i].len as usize; in init_memory_area_from_multiboot2()
253 PHYS_MEMORY_AREAS[areas_count].base = PhysAddr::new(mb2_mem_info[i].addr as usize); in init_memory_area_from_multiboot2()
254 PHYS_MEMORY_AREAS[areas_count].size = mb2_mem_info[i].len as usize; in init_memory_area_from_multiboot2()
438 const TOTAL_SIZE: usize = 200 * 1024 * 1024; in test_buddy()
460 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
486 slice[i] = ((i + unsafe { rdtsc() } as usize) % 256) as u8; in test_buddy()
498 let random_index = random_index as usize; in test_buddy()
589 const REMAP_SIZE: usize = 32 * 1024 * 1024;