MOS Source Code
Loading...
Searching...
No Matches
x86_platform.cpp File Reference
Include dependency graph for x86_platform.cpp:

Go to the source code of this file.

Classes

class  x86SerialDevice
struct  frame_t

Macros

#define TRACE_FMT   " %-3d [" PTR_FMT "]: "

Enumerations

enum  x86ComPort : u16 {
  COM1 = 0x3F8 , COM2 = 0x2F8 , COM3 = 0x3E8 , COM4 = 0x2E8 ,
  COM5 = 0x5F8 , COM6 = 0x4F8 , COM7 = 0x5E8 , COM8 = 0x4E8
}

Functions

static bool x86_keyboard_handler (u32 irq, void *data)
static bool x86_pit_timer_handler (u32 irq, void *data)
void x86_setup_lapic_timer ()
void x86_dump_stack_at (ptr_t this_frame, bool can_access_vmaps)
void platform_dump_current_stack (void)
void platform_dump_stack (const platform_regs_t *regs)
void platform_startup_early ()
void platform_startup_setup_kernel_mm ()
void platform_startup_late ()

Variables

static Buffer< MOS_PAGE_SIZEcom1_buf
static Buffer< MOS_PAGE_SIZEcom2_buf
x86SerialDevice com1_device { COM1 }
x86SerialDevice com2_device { COM2 }
SerialConsole COM1Console { "com1_console", CONSOLE_CAP_READ, &com1_buf, &com1_device, LightBlue, Black }
SerialConsole COM2Console { "com2_console", CONSOLE_CAP_READ, &com2_buf, &com2_device, LightBlue, Black }
mos_platform_info_t *const platform_info = &x86_platform
mos_platform_info_t x86_platform = { .boot_console = &COM1Console }
const acpi_rsdp_tacpi_rsdp = NULL

Macro Definition Documentation

◆ TRACE_FMT

#define TRACE_FMT   " %-3d [" PTR_FMT "]: "

Referenced by x86_dump_stack_at().

Enumeration Type Documentation

◆ x86ComPort

enum x86ComPort : u16
Enumerator
COM1 
COM2 
COM3 
COM4 
COM5 
COM6 
COM7 
COM8 

Definition at line 29 of file x86_platform.cpp.

Function Documentation

◆ x86_keyboard_handler()

bool x86_keyboard_handler ( u32 irq,
void * data )
static

Definition at line 95 of file x86_platform.cpp.

Referenced by platform_startup_late().

Here is the call graph for this function:

◆ x86_pit_timer_handler()

bool x86_pit_timer_handler ( u32 irq,
void * data )
static

Definition at line 105 of file x86_platform.cpp.

Referenced by platform_startup_late().

Here is the call graph for this function:

◆ x86_setup_lapic_timer()

void x86_setup_lapic_timer ( )

Definition at line 114 of file x86_platform.cpp.

Referenced by platform_ap_entry(), and platform_startup_late().

Here is the call graph for this function:

◆ x86_dump_stack_at()

void x86_dump_stack_at ( ptr_t this_frame,
bool can_access_vmaps )

Definition at line 125 of file x86_platform.cpp.

Referenced by platform_dump_current_stack(), platform_dump_stack(), and platform_dump_thread_kernel_stack().

Here is the call graph for this function:

◆ platform_dump_current_stack()

void platform_dump_current_stack ( void )

Definition at line 208 of file x86_platform.cpp.

Here is the call graph for this function:

◆ platform_dump_stack()

void platform_dump_stack ( const platform_regs_t * regs)

Definition at line 215 of file x86_platform.cpp.

Here is the call graph for this function:

◆ platform_startup_early()

void platform_startup_early ( )

Definition at line 220 of file x86_platform.cpp.

Here is the call graph for this function:

◆ platform_startup_setup_kernel_mm()

void platform_startup_setup_kernel_mm ( )

Definition at line 246 of file x86_platform.cpp.

Here is the call graph for this function:

◆ platform_startup_late()

void platform_startup_late ( )

Definition at line 251 of file x86_platform.cpp.

Here is the call graph for this function:

Variable Documentation

◆ com1_buf

Buffer<MOS_PAGE_SIZE> com1_buf
static

Definition at line 82 of file x86_platform.cpp.

◆ com2_buf

Buffer<MOS_PAGE_SIZE> com2_buf
static

Definition at line 83 of file x86_platform.cpp.

◆ com1_device

x86SerialDevice com1_device { COM1 }

Definition at line 85 of file x86_platform.cpp.

◆ com2_device

x86SerialDevice com2_device { COM2 }

Definition at line 86 of file x86_platform.cpp.

◆ COM1Console

SerialConsole COM1Console { "com1_console", CONSOLE_CAP_READ, &com1_buf, &com1_device, LightBlue, Black }

Definition at line 88 of file x86_platform.cpp.

Referenced by platform_startup_late().

◆ COM2Console

SerialConsole COM2Console { "com2_console", CONSOLE_CAP_READ, &com2_buf, &com2_device, LightBlue, Black }

Definition at line 89 of file x86_platform.cpp.

Referenced by platform_startup_early().

◆ platform_info

mos_platform_info_t* const platform_info = &x86_platform

Definition at line 91 of file x86_platform.cpp.

◆ x86_platform

mos_platform_info_t x86_platform = { .boot_console = &COM1Console }

◆ acpi_rsdp

const acpi_rsdp_t* acpi_rsdp = NULL

Definition at line 93 of file x86_platform.cpp.

Referenced by platform_startup_late().