Home
last modified time | relevance | path

Searched refs:gKernelArgs (Results 1 – 25 of 92) sorted by relevance

1234

/haiku/src/system/boot/platform/bios_ia32/
H A Dlong.cpp95 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()
[all …]
H A Dsmp.cpp56 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()
103 gKernelArgs.num_cpus = 1; in smp_do_mp_config()
108 gKernelArgs.num_cpus = 2; in smp_do_mp_config()
109 gKernelArgs.cpu_apic_id[0] = 0; in smp_do_mp_config()
110 gKernelArgs.cpu_apic_id[1] = 1; in smp_do_mp_config()
123 gKernelArgs.num_cpus = 0; in smp_do_mp_config()
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()
[all …]
H A Dmmu.cpp130 if (!get_free_address_range(gKernelArgs.physical_allocated_range, in allocate_physical()
131 gKernelArgs.num_physical_allocated_ranges, base, size, &base)) { in allocate_physical()
178 if (gKernelArgs.arch_args.num_pgtables == MAX_BOOT_PTABLES) { in add_page_table()
195 gKernelArgs.arch_args.pgtables[gKernelArgs.arch_args.num_pgtables++] in add_page_table()
207 if (base > gKernelArgs.arch_args.virtual_end) in add_page_table()
208 gKernelArgs.arch_args.virtual_end = base; in add_page_table()
338 gKernelArgs.arch_args.phys_pgdir = (uint32)sPageDirectory; in init_page_directory()
367 gKernelArgs.arch_args.num_pgtables = 0; in init_page_directory()
469 if (!is_address_range_covered(gKernelArgs.physical_memory_range, in mmu_allocate_physical()
470 gKernelArgs.num_physical_memory_ranges, base, size)) { in mmu_allocate_physical()
[all …]
H A Dapm.cpp39 const apm_info &info = gKernelArgs.platform_args.apm; in apm_init()
40 gKernelArgs.platform_args.apm.version = regs.eax & 0xffff; in apm_init()
41 gKernelArgs.platform_args.apm.flags = regs.ecx & 0xffff; in apm_init()
67 gKernelArgs.platform_args.apm.version = 0; in apm_init()
71 gKernelArgs.platform_args.apm.code32_segment_base = regs.eax & 0xffff; in apm_init()
72 gKernelArgs.platform_args.apm.code32_segment_offset = regs.ebx; in apm_init()
73 gKernelArgs.platform_args.apm.code32_segment_length = regs.esi & 0xffff; in apm_init()
75 gKernelArgs.platform_args.apm.code16_segment_base = regs.ecx & 0xffff; in apm_init()
76 gKernelArgs.platform_args.apm.code16_segment_length = regs.esi >> 16; in apm_init()
78 gKernelArgs.platform_args.apm.data_segment_base = regs.edx & 0xffff; in apm_init()
[all …]
H A Ddebug.cpp162 gKernelArgs.debug_output = sDebugSyslogBuffer; in debug_init_post_mmu()
163 gKernelArgs.debug_size = sDebugSyslogBuffer->size; in debug_init_post_mmu()
174 if (gKernelArgs.previous_debug_size != 0) { in debug_cleanup()
176 gKernelArgs.previous_debug_size = bytesReadable; in debug_cleanup()
182 gKernelArgs.previous_debug_output = buffer; in debug_cleanup()
184 gKernelArgs.previous_debug_size = 0; in debug_cleanup()
192 if (gKernelArgs.keep_debug_output_buffer) { in debug_cleanup()
204 gKernelArgs.keep_debug_output_buffer = false; in debug_cleanup()
206 if (!gKernelArgs.keep_debug_output_buffer) { in debug_cleanup()
207 gKernelArgs.debug_output = kernel_args_malloc(sBufferPosition); in debug_cleanup()
[all …]
/haiku/src/system/boot/arch/m68k/
H A Dmmu.cpp185 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/efi/arch/x86/
H A Darch_smp.cpp51 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()
68 gKernelArgs.num_cpus = 0; in acpi_do_smp_config()
77 gKernelArgs.arch_args.apic_phys = madt->local_apic_address; in acpi_do_smp_config()
86 if (gKernelArgs.num_cpus == SMP_MAX_CPUS) { 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()
105 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()
[all …]
H A Darch_mmu.cpp197 for (uint32_t i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in arch_mmu_post_efi_setup()
198 uint64 start = gKernelArgs.physical_memory_range[i].start; in arch_mmu_post_efi_setup()
199 uint64 size = gKernelArgs.physical_memory_range[i].size; in arch_mmu_post_efi_setup()
205 for (uint32_t i = 0; i < gKernelArgs.num_physical_allocated_ranges; i++) { in arch_mmu_post_efi_setup()
206 uint64 start = gKernelArgs.physical_allocated_range[i].start; in arch_mmu_post_efi_setup()
207 uint64 size = gKernelArgs.physical_allocated_range[i].size; in arch_mmu_post_efi_setup()
213 for (uint32_t i = 0; i < gKernelArgs.num_virtual_allocated_ranges; i++) { in arch_mmu_post_efi_setup()
214 uint64 start = gKernelArgs.virtual_allocated_range[i].start; in arch_mmu_post_efi_setup()
215 uint64 size = gKernelArgs.virtual_allocated_range[i].size; in arch_mmu_post_efi_setup()
271 sort_address_ranges(gKernelArgs.virtual_allocated_range, in arch_mmu_generate_post_efi_page_tables()
[all …]
/haiku/src/system/boot/platform/atari_m68k/
H A Dmmu.cpp186 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 …]
/haiku/src/system/boot/platform/amiga_m68k/
H A Dmmu.cpp185 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 …]
H A Dvideo.cpp42 gKernelArgs.frame_buffer.enabled = false; in probe_video_mode()
64 gKernelArgs.frame_buffer.width = gScreen->RastPort.BitMap->BytesPerRow * 8; in probe_video_mode()
65 gKernelArgs.frame_buffer.height = gScreen->RastPort.BitMap->Rows; in probe_video_mode()
66 gKernelArgs.frame_buffer.bytes_per_row = gScreen->RastPort.BitMap->BytesPerRow; in probe_video_mode()
67 gKernelArgs.frame_buffer.depth = gScreen->RastPort.BitMap->Depth; in probe_video_mode()
68 gKernelArgs.frame_buffer.physical_buffer.size in probe_video_mode()
69 = gKernelArgs.frame_buffer.width in probe_video_mode()
70 * gKernelArgs.frame_buffer.height in probe_video_mode()
72 gKernelArgs.frame_buffer.physical_buffer.start in probe_video_mode()
75 dprintf("video mode: %ux%ux%u\n", gKernelArgs.frame_buffer.width, in probe_video_mode()
[all …]
/haiku/src/system/boot/platform/riscv/
H A Dstart.cpp110 if (gKernelArgs.kernel_image->elf_class != ELFCLASS64) in convert_kernel_args()
113 fix_address(gKernelArgs.boot_volume); in convert_kernel_args()
114 fix_address(gKernelArgs.vesa_modes); in convert_kernel_args()
115 fix_address(gKernelArgs.edid_info); in convert_kernel_args()
116 fix_address(gKernelArgs.debug_output); in convert_kernel_args()
117 fix_address(gKernelArgs.boot_splash); in convert_kernel_args()
119 fix_address(gKernelArgs.ucode_data); in convert_kernel_args()
120 fix_address(gKernelArgs.arch_args.apic); in convert_kernel_args()
121 fix_address(gKernelArgs.arch_args.hpet); in convert_kernel_args()
123 fix_address(gKernelArgs.arch_args.fdt); in convert_kernel_args()
[all …]
H A Dvideo.cpp91 gKernelArgs.frame_buffer.physical_buffer.start = (addr_t)gFramebuf.colors; in platform_switch_to_logo()
92 gKernelArgs.frame_buffer.physical_buffer.size in platform_switch_to_logo()
94 gKernelArgs.frame_buffer.width = gFramebuf.width; in platform_switch_to_logo()
95 gKernelArgs.frame_buffer.height = gFramebuf.height; in platform_switch_to_logo()
96 gKernelArgs.frame_buffer.depth = 32; in platform_switch_to_logo()
97 gKernelArgs.frame_buffer.bytes_per_row = 4 * gFramebuf.stride; in platform_switch_to_logo()
98 gKernelArgs.frame_buffer.enabled = gFramebuf.width > 0 && gFramebuf.height > 0; in platform_switch_to_logo()
100 video_display_splash(gKernelArgs.frame_buffer.physical_buffer.start); in platform_switch_to_logo()
107 gKernelArgs.frame_buffer.enabled = false; in platform_switch_to_text_mode()
/haiku/src/system/boot/platform/openfirmware/
H A Dvideo.cpp33 switch (gKernelArgs.frame_buffer.depth) { in platform_set_palette()
84 gKernelArgs.frame_buffer.physical_buffer.start = address; in platform_switch_to_logo()
85 gKernelArgs.frame_buffer.physical_buffer.size = lineBytes * height; in platform_switch_to_logo()
86 gKernelArgs.frame_buffer.width = width; in platform_switch_to_logo()
87 gKernelArgs.frame_buffer.height = height; in platform_switch_to_logo()
88 gKernelArgs.frame_buffer.depth = depth; in platform_switch_to_logo()
89 gKernelArgs.frame_buffer.bytes_per_row = lineBytes; in platform_switch_to_logo()
95 dprintf("video mode: %ux%ux%u\n", gKernelArgs.frame_buffer.width, in platform_switch_to_logo()
96 gKernelArgs.frame_buffer.height, gKernelArgs.frame_buffer.depth); in platform_switch_to_logo()
98 gKernelArgs.frame_buffer.enabled = true; in platform_switch_to_logo()
[all …]
/haiku/src/system/boot/platform/efi/
H A Dstart.cpp93 fix_address(gKernelArgs.boot_volume); in convert_kernel_args()
94 fix_address(gKernelArgs.vesa_modes); in convert_kernel_args()
95 fix_address(gKernelArgs.edid_info); in convert_kernel_args()
96 fix_address(gKernelArgs.debug_output); in convert_kernel_args()
97 fix_address(gKernelArgs.boot_splash); in convert_kernel_args()
101 if (gKernelArgs.kernel_image->elf_class == ELFCLASS64) { in convert_kernel_args()
102 convert_preloaded_image<preloaded_elf64_image>(gKernelArgs.kernel_image); in convert_kernel_args()
104 convert_preloaded_image<preloaded_elf32_image>(gKernelArgs.kernel_image); in convert_kernel_args()
106 fix_address(gKernelArgs.kernel_image); in convert_kernel_args()
110 preloaded_image* image = gKernelArgs.preloaded_images; in convert_kernel_args()
[all …]
/haiku/src/system/boot/platform/generic/
H A Dvideo_splash.cpp89 if (gKernelArgs.frame_buffer.depth == 4) { in video_blit_image()
101 params.toBytesPerRow = gKernelArgs.frame_buffer.bytes_per_row; in video_blit_image()
104 blit(params, gKernelArgs.frame_buffer.depth); in video_blit_image()
112 if (!gKernelArgs.frame_buffer.enabled) in video_display_splash()
118 addr_t size = min_c(gKernelArgs.frame_buffer.width in video_display_splash()
119 * gKernelArgs.frame_buffer.height * 4u, in video_display_splash()
120 gKernelArgs.frame_buffer.physical_buffer.size); in video_display_splash()
138 switch (gKernelArgs.frame_buffer.depth) { in video_display_splash()
165 compute_splash_logo_placement(gKernelArgs.frame_buffer.width, gKernelArgs.frame_buffer.height, in video_display_splash()
175 switch (gKernelArgs.frame_buffer.depth) { in video_display_splash()
[all …]
/haiku/src/system/boot/platform/openfirmware/arch/sparc/
H A Dmmu.cpp56 return insert_address_range(gKernelArgs.arch_args.virtual_ranges_to_keep, in insert_virtual_range_to_keep()
57 &gKernelArgs.arch_args.num_virtual_ranges_to_keep, in insert_virtual_range_to_keep()
65 return remove_address_range(gKernelArgs.arch_args.virtual_ranges_to_keep, in remove_virtual_range_to_keep()
66 &gKernelArgs.arch_args.num_virtual_ranges_to_keep, in remove_virtual_range_to_keep()
125 gKernelArgs.num_physical_memory_ranges); in find_physical_memory_ranges()
138 return !get_free_address_range(gKernelArgs.virtual_allocated_range, in is_virtual_allocated()
139 gKernelArgs.num_virtual_allocated_ranges, (addr_t)address, size, in is_virtual_allocated()
148 return !get_free_address_range(gKernelArgs.physical_allocated_range, in is_physical_allocated()
149 gKernelArgs.num_physical_allocated_ranges, (addr_t)address, size, in is_physical_allocated()
157 return is_address_range_covered(gKernelArgs.physical_memory_range, in is_physical_memory()
[all …]
/haiku/src/system/boot/platform/efi/arch/x86_64/
H A Darch_mmu.cpp78 gKernelArgs.num_physical_memory_ranges = 0; in arch_mmu_post_efi_setup()
100 gKernelArgs.ignored_physical_memory in arch_mmu_post_efi_setup()
144 gKernelArgs.ignored_physical_memory in arch_mmu_post_efi_setup()
148 sort_address_ranges(gKernelArgs.physical_memory_range, in arch_mmu_post_efi_setup()
149 gKernelArgs.num_physical_memory_ranges); in arch_mmu_post_efi_setup()
150 sort_address_ranges(gKernelArgs.physical_allocated_range, in arch_mmu_post_efi_setup()
151 gKernelArgs.num_physical_allocated_ranges); in arch_mmu_post_efi_setup()
152 sort_address_ranges(gKernelArgs.virtual_allocated_range, in arch_mmu_post_efi_setup()
153 gKernelArgs.num_virtual_allocated_ranges); in arch_mmu_post_efi_setup()
161 for (uint32_t i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in arch_mmu_post_efi_setup()
[all …]
/haiku/src/system/boot/platform/u-boot/arch/ppc/
H A Darch_mmu.cpp160 for (i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in mmu_init_for_kernel()
163 gKernelArgs.physical_memory_range[i].start, in mmu_init_for_kernel()
164 gKernelArgs.physical_memory_range[i].size); in mmu_init_for_kernel()
168 for (i = 0; i < gKernelArgs.num_physical_allocated_ranges; i++) { in mmu_init_for_kernel()
171 gKernelArgs.physical_allocated_range[i].start, in mmu_init_for_kernel()
172 gKernelArgs.physical_allocated_range[i].size); in mmu_init_for_kernel()
176 for (i = 0; i < gKernelArgs.num_virtual_allocated_ranges; i++) { in mmu_init_for_kernel()
179 gKernelArgs.virtual_allocated_range[i].start, in mmu_init_for_kernel()
180 gKernelArgs.virtual_allocated_range[i].size); in mmu_init_for_kernel()
247 gKernelArgs.num_physical_memory_ranges); in find_physical_memory_ranges()
[all …]
/haiku/src/system/boot/platform/next_m68k/
H A Dvideo.cpp99 gKernelArgs.frame_buffer.width = mg->km_coni.dspy_w; in platform_switch_to_logo()
100 gKernelArgs.frame_buffer.height = mg->km_coni.dspy_h; in platform_switch_to_logo()
101 gKernelArgs.frame_buffer.bytes_per_row = mg->km_coni.bytes_per_scanline; in platform_switch_to_logo()
103 gKernelArgs.frame_buffer.depth = in platform_switch_to_logo()
105 gKernelArgs.frame_buffer.physical_buffer.size = in platform_switch_to_logo()
107 gKernelArgs.frame_buffer.physical_buffer.start = in platform_switch_to_logo()
112 gKernelArgs.frame_buffer.enabled = true; in platform_switch_to_logo()
120 if (!gKernelArgs.frame_buffer.enabled) { in platform_switch_to_text_mode()
124 gKernelArgs.frame_buffer.enabled = false; in platform_switch_to_text_mode()
131 gKernelArgs.frame_buffer.enabled = false; in platform_init_video()
H A Dcpu.cpp44 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()
84 gKernelArgs.num_cpus = 1; in cpu_init()
/haiku/src/system/boot/platform/efi/arch/arm/
H A Darch_mmu.cpp127 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()
184 for (uint32_t i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in arch_mmu_post_efi_setup()
185 uint64 start = gKernelArgs.physical_memory_range[i].start; in arch_mmu_post_efi_setup()
186 uint64 size = gKernelArgs.physical_memory_range[i].size; in arch_mmu_post_efi_setup()
192 for (uint32_t i = 0; i < gKernelArgs.num_physical_allocated_ranges; i++) { in arch_mmu_post_efi_setup()
193 uint64 start = gKernelArgs.physical_allocated_range[i].start; in arch_mmu_post_efi_setup()
194 uint64 size = gKernelArgs.physical_allocated_range[i].size; in arch_mmu_post_efi_setup()
200 for (uint32_t i = 0; i < gKernelArgs.num_virtual_allocated_ranges; i++) { in arch_mmu_post_efi_setup()
201 uint64 start = gKernelArgs.virtual_allocated_range[i].start; in arch_mmu_post_efi_setup()
[all …]
/haiku/src/system/boot/loader/
H A Dmain.cpp45 gKernelArgs.keep_debug_output_buffer = true; in main()
46 gKernelArgs.previous_debug_size = true; in main()
133 gKernelArgs.ucode_data = NULL; in main()
134 gKernelArgs.ucode_data_size = 0; in main()
144 gKernelArgs.kernel_args_size = sizeof(kernel_args); in main()
145 gKernelArgs.version = CURRENT_KERNEL_ARGS_VERSION; in main()
146 if (gKernelArgs.ucode_data == NULL) in main()
147 gKernelArgs.kernel_args_size = kernel_args_size_v1; in main()
160 gKernelArgs.boot_volume = buffer; in main()
161 gKernelArgs.boot_volume_size = gBootVolume.ContentSize(); in main()
/haiku/src/system/boot/platform/efi/arch/riscv64/
H A Darch_mmu.cpp213 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()
275 if (gKernelArgs.num_physical_memory_ranges <= 0) in GetPhysMemRange()
278 for (size_t i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in GetPhysMemRange()
279 beg = std::min(beg, gKernelArgs.physical_memory_range[i].start); in GetPhysMemRange()
280 …end = std::max(end, gKernelArgs.physical_memory_range[i].start + gKernelArgs.physical_memory_range… in GetPhysMemRange()
311 for (uint32_t i = 0; i < gKernelArgs.num_physical_memory_ranges; i++) { in arch_mmu_post_efi_setup()
312 uint64 start = gKernelArgs.physical_memory_range[i].start; in arch_mmu_post_efi_setup()
313 uint64 size = gKernelArgs.physical_memory_range[i].size; in arch_mmu_post_efi_setup()
319 for (uint32_t i = 0; i < gKernelArgs.num_physical_allocated_ranges; i++) { in arch_mmu_post_efi_setup()
[all …]
H A Darch_smp.cpp125 info->kernelEntry(&gKernelArgs, cpu); in arch_cpu_entry2()
165 gKernelArgs.num_cpus = sCpuCount; in arch_smp_init_other_cpus()
174 gKernelArgs.arch_args.hartIds[i] = sCpus[i].id; in arch_smp_init_other_cpus()
175 gKernelArgs.arch_args.plicContexts[i] = sCpus[i].plicContext; in arch_smp_init_other_cpus()
181 gKernelArgs.num_cpus = 1; in arch_smp_init_other_cpus()
184 if (gKernelArgs.num_cpus < 2) in arch_smp_init_other_cpus()
187 for (uint32 i = 1; i < gKernelArgs.num_cpus; i++) { in arch_smp_init_other_cpus()
196 gKernelArgs.cpu_kstack[i].start = fix_address((uint64_t)stack); in arch_smp_init_other_cpus()
197 gKernelArgs.cpu_kstack[i].size = size; in arch_smp_init_other_cpus()
214 gKernelArgs.cpu_kstack[i].start, gKernelArgs.cpu_kstack[i].start in arch_smp_boot_other_cpus()
[all …]

1234