MOS Source Code
Loading...
Searching...
No Matches
mos_platform_info_t Struct Reference

#include <platform.h>

+ Collaboration diagram for mos_platform_info_t:

Classes

struct  cpu
 

Public Attributes

u32 num_cpus
 
u32 boot_cpu_id
 
struct mos_platform_info_t::cpu cpu
 
pfn_t k_basepfn
 
ptr_t k_basevaddr
 
mm_context_tkernel_mm
 
pfn_t initrd_pfn
 
size_t initrd_npages
 
pfn_t max_pfn
 
pmm_region_t pmm_regions [MOS_MAX_MEMREGIONS]
 
size_t num_pmm_regions
 
ptr_t direct_map_base
 
size_t n_cmdlines
 
cmdline_option_t cmdlines [MOS_MAX_CMDLINE_COUNT]
 
platform_arch_info_t arch_info
 
console_tboot_console
 

Detailed Description

Definition at line 109 of file platform.h.

Member Data Documentation

◆ num_cpus

u32 num_cpus

Definition at line 111 of file platform.h.

Referenced by create_idle_task(), madt_parse_table(), and platform_startup_early().

◆ boot_cpu_id

u32 boot_cpu_id

Definition at line 112 of file platform.h.

Referenced by platform_startup_late().

◆ cpu

struct mos_platform_info_t::cpu cpu

◆ k_basepfn

pfn_t k_basepfn

Definition at line 115 of file platform.h.

Referenced by limine_entry().

◆ k_basevaddr

ptr_t k_basevaddr

Definition at line 116 of file platform.h.

Referenced by limine_entry().

◆ kernel_mm

◆ initrd_pfn

pfn_t initrd_pfn

Definition at line 120 of file platform.h.

Referenced by initrd_read(), limine_entry(), and mos_start_kernel().

◆ initrd_npages

size_t initrd_npages

Definition at line 121 of file platform.h.

Referenced by initrd_read(), limine_entry(), and mos_start_kernel().

◆ max_pfn

◆ pmm_regions

Definition at line 124 of file platform.h.

Referenced by add_to_memmap(), pmm_find_reserved_region(), and pmm_init().

◆ num_pmm_regions

size_t num_pmm_regions

Definition at line 125 of file platform.h.

Referenced by add_to_memmap(), pmm_find_reserved_region(), and pmm_init().

◆ direct_map_base

ptr_t direct_map_base

Definition at line 127 of file platform.h.

Referenced by limine_entry(), and x86_setup_direct_map().

◆ n_cmdlines

size_t n_cmdlines

Definition at line 129 of file platform.h.

Referenced by cmdline_get_option(), mos_cmdline_init(), and mos_start_kernel().

◆ cmdlines

◆ arch_info

◆ boot_console

console_t* boot_console

Definition at line 134 of file platform.h.

Referenced by limine_entry(), and mos_start_kernel().


The documentation for this struct was generated from the following file: