/haiku/src/system/kernel/arch/arm64/ |
H A D | arch_debug_console.cpp | 101 if (strncmp(args->arch_args.uart.kind, UART_KIND_PL011, in arch_debug_console_init() 102 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() 103 sArchDebugUART = arch_get_uart_pl011(args->arch_args.uart.regs.start, in arch_debug_console_init() 104 args->arch_args.uart.clock); in arch_debug_console_init() 105 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_LINFLEX, in arch_debug_console_init() 106 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() 107 sArchDebugUART = arch_get_uart_linflex(args->arch_args.uart.regs.start, in arch_debug_console_init() 108 args->arch_args.uart.clock); in arch_debug_console_init() 113 }*/ else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250, in arch_debug_console_init() 114 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() [all …]
|
H A D | arch_platform.cpp | 18 gFDT = kernelArgs->arch_args.fdt; in arch_platform_init() 26 if (kernelArgs->arch_args.acpi_root) { in arch_platform_init_post_vm() 27 sACPIRootPointer = kernelArgs->arch_args.acpi_root.Get(); in arch_platform_init_post_vm()
|
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_debug_console.cpp | 108 if (strncmp(args->arch_args.uart.kind, UART_KIND_PL011, in arch_debug_console_init() 109 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() 110 sArchDebugUART = arch_get_uart_pl011(args->arch_args.uart.regs.start, in arch_debug_console_init() 111 args->arch_args.uart.clock); in arch_debug_console_init() 112 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250_OMAP, in arch_debug_console_init() 113 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() 114 sArchDebugUART = arch_get_uart_8250_omap(args->arch_args.uart.regs.start, in arch_debug_console_init() 115 args->arch_args.uart.clock); in arch_debug_console_init() 116 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250, in arch_debug_console_init() 117 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() [all …]
|
H A D | arch_timer.cpp | 62 } else if (strncmp(args->arch_args.timer.kind, TIMER_KIND_OMAP3, in arch_init_timer() 63 sizeof(args->arch_args.timer.kind)) == 0) { in arch_init_timer() 64 OMAP3Timer::Init(args->arch_args.timer.regs.start, in arch_init_timer() 65 args->arch_args.timer.interrupt); in arch_init_timer() 66 } else if (strncmp(args->arch_args.timer.kind, TIMER_KIND_PXA, in arch_init_timer() 67 sizeof(args->arch_args.timer.kind)) == 0) { in arch_init_timer() 68 PXATimer::Init(args->arch_args.timer.regs.start); in arch_init_timer()
|
H A D | arch_int.cpp | 156 if (strncmp(args->arch_args.interrupt_controller.kind, INTC_KIND_GICV2, in arch_int_init_post_vm() 157 sizeof(args->arch_args.interrupt_controller.kind)) == 0) { in arch_int_init_post_vm() 159 args->arch_args.interrupt_controller.regs1.start, in arch_int_init_post_vm() 160 args->arch_args.interrupt_controller.regs2.start); in arch_int_init_post_vm() 163 } else if (strncmp(args->arch_args.interrupt_controller.kind, INTC_KIND_OMAP3, in arch_int_init_post_vm() 164 sizeof(args->arch_args.interrupt_controller.kind)) == 0) { in arch_int_init_post_vm() 166 args->arch_args.interrupt_controller.regs1.start); in arch_int_init_post_vm() 169 } else if (strncmp(args->arch_args.interrupt_controller.kind, INTC_KIND_PXA, in arch_int_init_post_vm() 170 sizeof(args->arch_args.interrupt_controller.kind)) == 0) { in arch_int_init_post_vm() 172 args->arch_args.interrupt_controller.regs1.start); in arch_int_init_post_vm() [all …]
|
/haiku/src/system/boot/platform/efi/arch/x86/ |
H A D | arch_smp.cpp | 51 return *(volatile uint32 *)((addr_t)gKernelArgs.arch_args.apic_phys + offset); in apic_read() 58 *(volatile uint32 *)((addr_t)gKernelArgs.arch_args.apic_phys + offset) = data; in apic_write() 77 gKernelArgs.arch_args.apic_phys = madt->local_apic_address; in acpi_do_smp_config() 100 gKernelArgs.arch_args.cpu_apic_id[gKernelArgs.num_cpus] in acpi_do_smp_config() 103 gKernelArgs.arch_args.cpu_apic_version[gKernelArgs.num_cpus] in acpi_do_smp_config() 113 if (gKernelArgs.arch_args.ioapic_phys == 0) in acpi_do_smp_config() 114 gKernelArgs.arch_args.ioapic_phys = ioApic->io_apic_address; in acpi_do_smp_config() 157 gKernelArgs.arch_args.apic_time_cv_factor in calculate_apic_timer_conversion_factor() 161 gKernelArgs.arch_args.apic_time_cv_factor); in calculate_apic_timer_conversion_factor() 171 if (gKernelArgs.arch_args.apic == NULL) in arch_smp_get_current_cpu() [all …]
|
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | smp.cpp | 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() [all …]
|
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_debug_console.cpp | 106 if (strncmp(args->arch_args.uart.kind, UART_KIND_8250, in arch_debug_console_init() 107 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() 108 sArchDebugUART = arch_get_uart_8250(args->arch_args.uart.regs.start, in arch_debug_console_init() 109 args->arch_args.uart.clock); in arch_debug_console_init() 110 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_SIFIVE, in arch_debug_console_init() 111 sizeof(args->arch_args.uart.kind)) == 0) { in arch_debug_console_init() 112 sArchDebugUART = arch_get_uart_sifive(args->arch_args.uart.regs.start, in arch_debug_console_init() 113 args->arch_args.uart.clock); in arch_debug_console_init()
|
H A D | arch_platform.cpp | 28 gPlatform = args->arch_args.machine_platform; in arch_platform_init() 43 gFDT = args->arch_args.fdt; in arch_platform_init() 45 gHtifRegs = (HtifRegs *volatile)args->arch_args.htif.start; in arch_platform_init() 46 gPlicRegs = (PlicRegs *volatile)args->arch_args.plic.start; in arch_platform_init() 47 gClintRegs = (ClintRegs *volatile)args->arch_args.clint.start; in arch_platform_init()
|
/haiku/src/system/boot/platform/next_m68k/ |
H A D | cpu.cpp | 44 gKernelArgs.arch_args.cpu_type = cpu; in check_cpu_features() 45 gKernelArgs.arch_args.mmu_type = cpu; in check_cpu_features() 46 gKernelArgs.arch_args.fpu_type = fpu; in check_cpu_features() 49 gKernelArgs.arch_args.has_lpstop = false; in check_cpu_features() 51 gKernelArgs.arch_args.platform = M68K_PLATFORM_NEXT; in check_cpu_features() 52 gKernelArgs.arch_args.machine = 0; //XXX in check_cpu_features()
|
/haiku/src/system/boot/arch/x86/ |
H A D | arch_hpet.cpp | 41 gKernelArgs.arch_args.hpet_phys = 0; in hpet_init() 42 gKernelArgs.arch_args.hpet = NULL; in hpet_init() 54 gKernelArgs.arch_args.hpet_phys = hpet->hpet_address.address; in hpet_init() 55 gKernelArgs.arch_args.hpet = (void *)mmu_map_physical_memory( in hpet_init() 56 gKernelArgs.arch_args.hpet_phys, B_PAGE_SIZE, kDefaultPageFlags); in hpet_init()
|
/haiku/src/system/boot/arch/m68k/ |
H A D | mmu.cpp | 185 gKernelArgs.arch_args.pgtables[gKernelArgs.arch_args.num_pgtables++] = (uint32)pageTable; 247 gKernelArgs.arch_args.phys_pgroot = (uint32)gPageRoot; in init_page_directory() 248 gKernelArgs.arch_args.phys_vbr = (uint32)gPageRoot + VBR_PAGE_OFFSET; in init_page_directory() 292 gKernelArgs.arch_args.num_pgtables = 0; in init_page_directory() 424 gKernelArgs.arch_args.phys_idt = (uint32)idt; in mmu_init_for_kernel() 429 gKernelArgs.arch_args.vir_idt = (uint32)get_next_virtual_page(); in mmu_init_for_kernel() 430 map_page(gKernelArgs.arch_args.vir_idt, (uint32)idt, kDefaultPageFlags); in mmu_init_for_kernel() 433 uint32* virtualIDT = (uint32*)gKernelArgs.arch_args.vir_idt; in mmu_init_for_kernel() 440 idtDescriptor.base = (uint32 *)gKernelArgs.arch_args.vir_idt; in mmu_init_for_kernel() 445 TRACE(("idt at virtual address 0x%lx\n", gKernelArgs.arch_args.vir_idt)); in mmu_init_for_kernel() [all …]
|
/haiku/src/system/boot/platform/amiga_m68k/ |
H A D | cpu.cpp | 63 gKernelArgs.arch_args.cpu_type = cpu; in check_cpu_features() 64 gKernelArgs.arch_args.mmu_type = cpu; in check_cpu_features() 65 gKernelArgs.arch_args.fpu_type = fpu; in check_cpu_features() 68 gKernelArgs.arch_args.has_lpstop = false; in check_cpu_features() 70 gKernelArgs.arch_args.platform = M68K_PLATFORM_AMIGA; in check_cpu_features() 71 gKernelArgs.arch_args.machine = 0; //XXX in check_cpu_features()
|
H A D | mmu.cpp | 185 gKernelArgs.arch_args.pgtables[gKernelArgs.arch_args.num_pgtables++] = (uint32)pageTable; 247 gKernelArgs.arch_args.phys_pgroot = (uint32)gPageRoot; in init_page_directory() 248 gKernelArgs.arch_args.phys_vbr = (uint32)gPageRoot + VBR_PAGE_OFFSET; in init_page_directory() 292 gKernelArgs.arch_args.num_pgtables = 0; in init_page_directory() 424 gKernelArgs.arch_args.phys_idt = (uint32)idt; in mmu_init_for_kernel() 429 gKernelArgs.arch_args.vir_idt = (uint32)get_next_virtual_page(); in mmu_init_for_kernel() 430 map_page(gKernelArgs.arch_args.vir_idt, (uint32)idt, kDefaultPageFlags); in mmu_init_for_kernel() 433 uint32* virtualIDT = (uint32*)gKernelArgs.arch_args.vir_idt; in mmu_init_for_kernel() 440 idtDescriptor.base = (uint32 *)gKernelArgs.arch_args.vir_idt; in mmu_init_for_kernel() 445 TRACE(("idt at virtual address 0x%lx\n", gKernelArgs.arch_args.vir_idt)); in mmu_init_for_kernel() [all …]
|
/haiku/src/system/boot/platform/atari_m68k/ |
H A D | mmu.cpp | 186 gKernelArgs.arch_args.pgtables[gKernelArgs.arch_args.num_pgtables++] = (uint32)pageTable; 248 gKernelArgs.arch_args.phys_pgroot = (uint32)gPageRoot; in init_page_directory() 249 gKernelArgs.arch_args.phys_vbr = (uint32)gPageRoot + VBR_PAGE_OFFSET; in init_page_directory() 293 gKernelArgs.arch_args.num_pgtables = 0; in init_page_directory() 425 gKernelArgs.arch_args.phys_idt = (uint32)idt; in mmu_init_for_kernel() 430 gKernelArgs.arch_args.vir_idt = (uint32)get_next_virtual_page(); in mmu_init_for_kernel() 431 map_page(gKernelArgs.arch_args.vir_idt, (uint32)idt, kDefaultPageFlags); in mmu_init_for_kernel() 434 uint32* virtualIDT = (uint32*)gKernelArgs.arch_args.vir_idt; in mmu_init_for_kernel() 441 idtDescriptor.base = (uint32 *)gKernelArgs.arch_args.vir_idt; in mmu_init_for_kernel() 446 TRACE(("idt at virtual address 0x%lx\n", gKernelArgs.arch_args.vir_idt)); in mmu_init_for_kernel() [all …]
|
H A D | cpu.cpp | 57 gKernelArgs.arch_args.cpu_type = 68000 + cpu_type; in check_cpu_features() 58 gKernelArgs.arch_args.mmu_type = 68000 + cpu_type; in check_cpu_features() 59 gKernelArgs.arch_args.has_lpstop = (cpu_type >= 60)?true:false; in check_cpu_features() 84 gKernelArgs.arch_args.fpu_type = fpu; in check_cpu_features() 86 gKernelArgs.arch_args.platform = M68K_PLATFORM_ATARI; in check_cpu_features() 94 gKernelArgs.arch_args.machine = machine_type; in check_cpu_features()
|
H A D | toscalls.cpp | 212 gKernelArgs.arch_args.plat_args.atari.nat_feat.nf_get_id = NULL; in init_nat_features() 213 gKernelArgs.arch_args.plat_args.atari.nat_feat.nf_call = NULL; in init_nat_features() 214 gKernelArgs.arch_args.plat_args.atari.nat_feat.nf_dprintf_id = 0; in init_nat_features() 220 gKernelArgs.arch_args.plat_args.atari.nat_feat.nf_get_id = in init_nat_features() 222 gKernelArgs.arch_args.plat_args.atari.nat_feat.nf_call = in init_nat_features() 224 gKernelArgs.arch_args.plat_args.atari.nat_feat.nf_dprintf_id = in init_nat_features()
|
/haiku/src/system/boot/platform/efi/arch/arm/ |
H A D | arch_mmu.cpp | 127 gKernelArgs.arch_args.virtual_ranges_to_keep, in insert_virtual_range_to_keep() 128 &gKernelArgs.arch_args.num_virtual_ranges_to_keep, in insert_virtual_range_to_keep() 208 for (uint32_t i = 0; i < gKernelArgs.arch_args.num_virtual_ranges_to_keep; i++) { in arch_mmu_post_efi_setup() 209 uint32 start = gKernelArgs.arch_args.virtual_ranges_to_keep[i].start; in arch_mmu_post_efi_setup() 210 uint32 size = gKernelArgs.arch_args.virtual_ranges_to_keep[i].size; in arch_mmu_post_efi_setup() 279 map_range_to_new_area(gKernelArgs.arch_args.uart.regs, in arch_mmu_generate_post_efi_page_tables() 288 gKernelArgs.arch_args.phys_pgdir = (uint32)sPageDirectory; in arch_mmu_generate_post_efi_page_tables() 289 gKernelArgs.arch_args.vir_pgdir = (uint32)virtPageDirectory; in arch_mmu_generate_post_efi_page_tables() 290 gKernelArgs.arch_args.next_pagetable = (uint32)(sNextPageTable) - (uint32)sPageDirectory; in arch_mmu_generate_post_efi_page_tables() 291 gKernelArgs.arch_args.last_pagetable = (uint32)(sLastPageTable) - (uint32)sPageDirectory; in arch_mmu_generate_post_efi_page_tables() [all …]
|
/haiku/src/system/boot/platform/u-boot/arch/ppc/ |
H A D | arch_cpu.cpp | 97 gKernelArgs.arch_args.cpu_frequency = clockFrequency; in enumerate_cpus() 98 gKernelArgs.arch_args.bus_frequency = busFrequency; in enumerate_cpus() 99 gKernelArgs.arch_args.time_base_frequency = timeBaseFrequency; in enumerate_cpus() 117 if (gKernelArgs.arch_args.bus_frequency == 0) { in enumerate_cpus() 127 gKernelArgs.arch_args.bus_frequency = busFrequency; in enumerate_cpus() 130 gKernelArgs.arch_args.bus_frequency)); in enumerate_cpus() 277 gKernelArgs.arch_args.platform = PPC_PLATFORM_U_BOOT; in boot_arch_cpu_init()
|
/haiku/src/system/boot/platform/riscv/ |
H A D | mmu.cpp | 213 if (gKernelArgs.arch_args.num_virtual_ranges_to_keep in MapAddrRange() 217 gKernelArgs.arch_args.virtual_ranges_to_keep[ in MapAddrRange() 218 gKernelArgs.arch_args.num_virtual_ranges_to_keep++] = range; in MapAddrRange() 251 gKernelArgs.arch_args.physMap.size in SetupPageTable() 253 gKernelArgs.arch_args.physMap.start = KERNEL_TOP + 1 in SetupPageTable() 254 - gKernelArgs.arch_args.physMap.size; in SetupPageTable() 255 MapRange(gKernelArgs.arch_args.physMap.start, in SetupPageTable() 257 gKernelArgs.arch_args.physMap.size, in SetupPageTable() 276 MapAddrRange(gKernelArgs.arch_args.clint, Pte {.isRead = true, .isWrite = true}.val); in SetupPageTable() 277 MapAddrRange(gKernelArgs.arch_args.htif, Pte {.isRead = true, .isWrite = true}.val); in SetupPageTable() [all …]
|
H A D | fdt.cpp | 211 gKernelArgs.arch_args.fdt = (void*)(addr_t)kernel_args_malloc(fdtSize, 8); in fdt_set_kernel_args() 213 if (gKernelArgs.arch_args.fdt != NULL) in fdt_set_kernel_args() 214 memcpy(gKernelArgs.arch_args.fdt, gFdt, fdt_totalsize(gFdt)); in fdt_set_kernel_args() 218 gKernelArgs.arch_args.timerFrequency = sTimerFrequrency; in fdt_set_kernel_args() 220 gKernelArgs.arch_args.htif.start = (addr_t)gHtifRegs; in fdt_set_kernel_args() 221 gKernelArgs.arch_args.htif.size = sizeof(HtifRegs); in fdt_set_kernel_args() 223 gKernelArgs.arch_args.plic = sPlic; in fdt_set_kernel_args() 224 gKernelArgs.arch_args.clint = sClint; in fdt_set_kernel_args() 225 gKernelArgs.arch_args.uart = sUart; in fdt_set_kernel_args()
|
/haiku/src/system/boot/platform/efi/arch/riscv64/ |
H A D | arch_mmu.cpp | 213 gKernelArgs.arch_args.virtual_ranges_to_keep, in insert_virtual_range_to_keep() 214 &gKernelArgs.arch_args.num_virtual_ranges_to_keep, in insert_virtual_range_to_keep() 335 for (uint32_t i = 0; i < gKernelArgs.arch_args.num_virtual_ranges_to_keep; i++) { in arch_mmu_post_efi_setup() 336 uint64 start = gKernelArgs.arch_args.virtual_ranges_to_keep[i].start; in arch_mmu_post_efi_setup() 337 uint64 size = gKernelArgs.arch_args.virtual_ranges_to_keep[i].size; in arch_mmu_post_efi_setup() 371 gKernelArgs.arch_args.num_virtual_ranges_to_keep = 0; in arch_mmu_generate_post_efi_page_tables() 384 gKernelArgs.arch_args.physMap.start = KERNEL_TOP + 1 - physMemRange.size; in arch_mmu_generate_post_efi_page_tables() 385 gKernelArgs.arch_args.physMap.size = physMemRange.size; in arch_mmu_generate_post_efi_page_tables() 386 MapRange(gKernelArgs.arch_args.physMap.start, physMemRange.start, physMemRange.size, in arch_mmu_generate_post_efi_page_tables() 428 MapAddrRange(gKernelArgs.arch_args.clint, Pte {.isRead = true, .isWrite = true}.val); in arch_mmu_generate_post_efi_page_tables() [all …]
|
/haiku/src/system/kernel/arch/m68k/ |
H A D | arch_cpu.cpp | 60 arch_cpu_type = args->arch_args.cpu_type; in arch_cpu_init() 61 arch_fpu_type = args->arch_args.fpu_type; in arch_cpu_init() 62 arch_mmu_type = args->arch_args.mmu_type; in arch_cpu_init() 63 arch_platform = args->arch_args.platform; in arch_cpu_init() 64 arch_platform = args->arch_args.machine; in arch_cpu_init()
|
H A D | arch_system_info.cpp | 52 sCPUClockFrequency = args->arch_args.cpu_frequency; in arch_system_info_init() 53 sBusClockFrequency = args->arch_args.bus_frequency; // not reported anymore? in arch_system_info_init() 55 sCPURevision = args->arch_args.cpu_type; //TODO:is it what we want? in arch_system_info_init()
|
/haiku/src/system/boot/platform/efi/arch/arm64/ |
H A D | arch_mmu.cpp | 345 for (uint32_t i = 0; i < gKernelArgs.arch_args.num_virtual_ranges_to_keep; i++) { in arch_mmu_post_efi_setup() 346 uint64 start = gKernelArgs.arch_args.virtual_ranges_to_keep[i].start; in arch_mmu_post_efi_setup() 347 uint64 size = gKernelArgs.arch_args.virtual_ranges_to_keep[i].size; in arch_mmu_post_efi_setup() 428 if (gKernelArgs.arch_args.uart.kind[0] != 0) { in arch_mmu_generate_post_efi_page_tables() 430 uint64 regs_start = gKernelArgs.arch_args.uart.regs.start; in arch_mmu_generate_post_efi_page_tables() 431 uint64 regs_size = ROUNDUP(gKernelArgs.arch_args.uart.regs.size, B_PAGE_SIZE); in arch_mmu_generate_post_efi_page_tables() 438 gKernelArgs.arch_args.uart.regs.start = base; in arch_mmu_generate_post_efi_page_tables() 447 gKernelArgs.arch_args.phys_pgdir = (uint64)sPageDirectory; in arch_mmu_generate_post_efi_page_tables() 448 gKernelArgs.arch_args.vir_pgdir = (uint32)vir_pgdir; in arch_mmu_generate_post_efi_page_tables() 449 gKernelArgs.arch_args.next_pagetable = (uint64)(sNextPageTable) - (uint64)sPageDirectory; in arch_mmu_generate_post_efi_page_tables() [all …]
|