Lines Matching refs:arch_args

56 	return *(volatile uint32 *)((addr_t)(void *)gKernelArgs.arch_args.apic + offset);  in apic_read()
63 *(volatile uint32 *)((addr_t)(void *)gKernelArgs.arch_args.apic + offset) = data; in apic_write()
143 gKernelArgs.arch_args.apic_phys = (uint32)config->apic; in smp_do_mp_config()
144 if ((gKernelArgs.arch_args.apic_phys % 4096) != 0) { in smp_do_mp_config()
147 (void *)gKernelArgs.arch_args.apic_phys); in smp_do_mp_config()
173 gKernelArgs.arch_args.cpu_apic_id[gKernelArgs.num_cpus] in smp_do_mp_config()
175 gKernelArgs.arch_args.cpu_apic_version[gKernelArgs.num_cpus] in smp_do_mp_config()
208 if (gKernelArgs.arch_args.ioapic_phys == 0) { in smp_do_mp_config()
209 gKernelArgs.arch_args.ioapic_phys = (uint32)io->addr; in smp_do_mp_config()
210 if (gKernelArgs.arch_args.ioapic_phys % 1024) { in smp_do_mp_config()
213 (void *)gKernelArgs.arch_args.ioapic_phys)); in smp_do_mp_config()
248 (void *)gKernelArgs.arch_args.apic_phys, in smp_do_mp_config()
249 (void *)gKernelArgs.arch_args.ioapic_phys, in smp_do_mp_config()
271 gKernelArgs.arch_args.apic_phys = madt->local_apic_address; in smp_do_acpi_config()
294 gKernelArgs.arch_args.cpu_apic_id[gKernelArgs.num_cpus] in smp_do_acpi_config()
297 gKernelArgs.arch_args.cpu_apic_version[gKernelArgs.num_cpus] in smp_do_acpi_config()
307 if (gKernelArgs.arch_args.ioapic_phys == 0) in smp_do_acpi_config()
308 gKernelArgs.arch_args.ioapic_phys = ioApic->io_apic_address; in smp_do_acpi_config()
349 gKernelArgs.arch_args.apic_time_cv_factor in calculate_apic_timer_conversion_factor()
353 gKernelArgs.arch_args.apic_time_cv_factor); in calculate_apic_timer_conversion_factor()
363 if (gKernelArgs.arch_args.apic == NULL) in smp_get_current_cpu()
368 if (gKernelArgs.arch_args.cpu_apic_id[i] == apicID) in smp_get_current_cpu()
387 gKernelArgs.arch_args.apic_phys = 0; in smp_init_other_cpus()
391 if (gKernelArgs.arch_args.apic_phys == 0) in smp_init_other_cpus()
396 dprintf("smp: apic_phys = %p\n", (void *)gKernelArgs.arch_args.apic_phys); in smp_init_other_cpus()
398 (void *)gKernelArgs.arch_args.ioapic_phys); in smp_init_other_cpus()
401 gKernelArgs.arch_args.apic = (void *)mmu_map_physical_memory( in smp_init_other_cpus()
402 gKernelArgs.arch_args.apic_phys, B_PAGE_SIZE, kDefaultPageFlags); in smp_init_other_cpus()
404 dprintf("smp: apic (mapped) = %p\n", (void *)gKernelArgs.arch_args.apic); in smp_init_other_cpus()
488 if (gKernelArgs.arch_args.cpu_apic_version[i] & 0xf0) { in smp_boot_other_cpus()
496 | (gKernelArgs.arch_args.cpu_apic_id[i] << 24); in smp_boot_other_cpus()
511 | (gKernelArgs.arch_args.cpu_apic_id[i] << 24); in smp_boot_other_cpus()
526 numStartups = (gKernelArgs.arch_args.cpu_apic_version[i] & 0xf0) in smp_boot_other_cpus()
537 | (gKernelArgs.arch_args.cpu_apic_id[i] << 24); in smp_boot_other_cpus()
570 if (gKernelArgs.arch_args.ioapic_phys != 0) { in smp_add_safemode_menus()
578 if (gKernelArgs.arch_args.apic_phys != 0) { in smp_add_safemode_menus()
675 gKernelArgs.arch_args.apic_phys = 0; in smp_init()
676 gKernelArgs.arch_args.ioapic_phys = 0; in smp_init()