Lines Matching refs:gKernelArgs
95 pmlTop = (uint64*)mmu_allocate_page((addr_t*)&gKernelArgs.arch_args.phys_pgdir); in long_mmu_init()
97 gKernelArgs.arch_args.vir_pgdir = fix_address((uint64)(addr_t)pmlTop); in long_mmu_init()
100 gKernelArgs.virtual_allocated_range[0].start = KERNEL_LOAD_BASE_64_BIT; in long_mmu_init()
101 gKernelArgs.virtual_allocated_range[0].size = mmu_get_virtual_usage(); in long_mmu_init()
102 gKernelArgs.num_virtual_allocated_ranges = 1; in long_mmu_init()
103 gKernelArgs.arch_args.virtual_end = ROUNDUP(KERNEL_LOAD_BASE_64_BIT in long_mmu_init()
104 + gKernelArgs.virtual_allocated_range[0].size, 0x200000); in long_mmu_init()
110 for (uint32 i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in long_mmu_init()
112 gKernelArgs.physical_memory_range[i].start in long_mmu_init()
113 + gKernelArgs.physical_memory_range[i].size); in long_mmu_init()
185 for (uint32 i = 0; i < gKernelArgs.virtual_allocated_range[0].size in long_mmu_init()
212 sort_address_ranges(gKernelArgs.physical_memory_range, in long_mmu_init()
213 gKernelArgs.num_physical_memory_ranges); in long_mmu_init()
214 sort_address_ranges(gKernelArgs.physical_allocated_range, in long_mmu_init()
215 gKernelArgs.num_physical_allocated_ranges); in long_mmu_init()
216 sort_address_ranges(gKernelArgs.virtual_allocated_range, in long_mmu_init()
217 gKernelArgs.num_virtual_allocated_ranges); in long_mmu_init()
220 for (uint32 i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in long_mmu_init()
222 gKernelArgs.physical_memory_range[i].start, in long_mmu_init()
223 gKernelArgs.physical_memory_range[i].size); in long_mmu_init()
227 for (uint32 i = 0; i < gKernelArgs.num_physical_allocated_ranges; i++) { in long_mmu_init()
229 gKernelArgs.physical_allocated_range[i].start, in long_mmu_init()
230 gKernelArgs.physical_allocated_range[i].size); in long_mmu_init()
234 for (uint32 i = 0; i < gKernelArgs.num_virtual_allocated_ranges; i++) { in long_mmu_init()
236 gKernelArgs.virtual_allocated_range[i].start, in long_mmu_init()
237 gKernelArgs.virtual_allocated_range[i].size); in long_mmu_init()
240 gLongPhysicalPMLTop = gKernelArgs.arch_args.phys_pgdir; in long_mmu_init()
262 fix_address(gKernelArgs.boot_volume); in convert_kernel_args()
263 fix_address(gKernelArgs.vesa_modes); in convert_kernel_args()
264 fix_address(gKernelArgs.edid_info); in convert_kernel_args()
265 fix_address(gKernelArgs.debug_output); in convert_kernel_args()
266 fix_address(gKernelArgs.previous_debug_output); in convert_kernel_args()
267 fix_address(gKernelArgs.boot_splash); in convert_kernel_args()
268 fix_address(gKernelArgs.ucode_data); in convert_kernel_args()
269 fix_address(gKernelArgs.arch_args.apic); in convert_kernel_args()
270 fix_address(gKernelArgs.arch_args.hpet); in convert_kernel_args()
273 gKernelArgs.kernel_image.Pointer())); in convert_kernel_args()
274 fix_address(gKernelArgs.kernel_image); in convert_kernel_args()
278 preloaded_image* image = gKernelArgs.preloaded_images; in convert_kernel_args()
279 fix_address(gKernelArgs.preloaded_images); in convert_kernel_args()
288 for (uint32 i = 0; i < gKernelArgs.num_kernel_args_ranges; i++) { in convert_kernel_args()
289 gKernelArgs.kernel_args_range[i].start = fix_address( in convert_kernel_args()
290 gKernelArgs.kernel_args_range[i].start); in convert_kernel_args()
292 gKernelArgs.kernel_args_range[i].start, in convert_kernel_args()
293 gKernelArgs.kernel_args_range[i].size); in convert_kernel_args()
297 driver_settings_file* file = gKernelArgs.driver_settings; in convert_kernel_args()
298 fix_address(gKernelArgs.driver_settings); in convert_kernel_args()
328 gKernelArgs.cpu_kstack[cpu].start in long_smp_start_kernel()
329 = fix_address(gKernelArgs.cpu_kstack[cpu].start); in long_smp_start_kernel()
331 long_enter_kernel(cpu, gKernelArgs.cpu_kstack[cpu].start in long_smp_start_kernel()
332 + gKernelArgs.cpu_kstack[cpu].size); in long_smp_start_kernel()
350 gKernelArgs.kernel_image.Pointer()); in long_start_kernel()
364 gKernelArgs.cpu_kstack[0].start in long_start_kernel()
365 = fix_address(gKernelArgs.cpu_kstack[0].start); in long_start_kernel()
373 long_enter_kernel(0, gKernelArgs.cpu_kstack[0].start in long_start_kernel()
374 + gKernelArgs.cpu_kstack[0].size); in long_start_kernel()