MOS Source Code
|
#include "mos/x86/x86_platform.h"
#include "mos/device/console.h"
#include "mos/device/serial_console.h"
#include "mos/interrupt/interrupt.h"
#include "mos/mm/mm.h"
#include "mos/mm/paging/paging.h"
#include "mos/syslog/printk.h"
#include "mos/tasks/schedule.h"
#include "mos/x86/acpi/acpi.h"
#include "mos/x86/acpi/acpi_types.h"
#include "mos/x86/acpi/madt.h"
#include "mos/x86/cpu/ap_entry.h"
#include "mos/x86/cpu/cpu.h"
#include "mos/x86/descriptors/descriptors.h"
#include "mos/x86/devices/port.h"
#include "mos/x86/devices/rtc.h"
#include "mos/x86/devices/serial_driver.h"
#include "mos/x86/interrupt/apic.h"
#include "mos/x86/mm/paging_impl.h"
#include "mos/x86/x86_interrupt.h"
#include <mos_stdlib.h>
#include <mos_string.h>
Go to the source code of this file.
Classes | |
struct | frame_t |
Macros | |
#define | TRACE_FMT " %-3d [" PTR_FMT "]: " |
Functions | |
static u8 com1_buf[MOS_PAGE_SIZE] | __aligned (MOS_PAGE_SIZE) |
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 (platform_regs_t *regs) |
void | platform_startup_early () |
void | platform_startup_setup_kernel_mm () |
void | platform_startup_late () |
Variables | |
serial_console_t | com1_console |
serial_console_t | com2_console |
mos_platform_info_t *const | platform_info = &x86_platform |
mos_platform_info_t | x86_platform = { .boot_console = &com1_console.con } |
const acpi_rsdp_t * | acpi_rsdp = NULL |
#define TRACE_FMT " %-3d [" PTR_FMT "]: " |
Referenced by x86_dump_stack_at().
|
static |
Definition at line 67 of file x86_platform.c.
Referenced by platform_startup_late().
Definition at line 77 of file x86_platform.c.
Referenced by platform_startup_late().
void x86_setup_lapic_timer | ( | ) |
Definition at line 86 of file x86_platform.c.
Referenced by platform_ap_entry(), and platform_startup_late().
Definition at line 97 of file x86_platform.c.
Referenced by platform_dump_current_stack(), platform_dump_stack(), and platform_dump_thread_kernel_stack().
Definition at line 181 of file x86_platform.c.
Referenced by try_handle_kernel_panics_at(), and x86_handle_exception().
void platform_dump_stack | ( | platform_regs_t * | regs | ) |
void platform_startup_early | ( | ) |
void platform_startup_setup_kernel_mm | ( | ) |
void platform_startup_late | ( | ) |
serial_console_t com1_console |
Definition at line 31 of file x86_platform.c.
Referenced by platform_startup_late().
serial_console_t com2_console |
Definition at line 47 of file x86_platform.c.
Referenced by platform_startup_early().
mos_platform_info_t* const platform_info = &x86_platform |
Definition at line 63 of file x86_platform.c.
Referenced by platform_startup_late().
mos_platform_info_t x86_platform = { .boot_console = &com1_console.con } |
Definition at line 64 of file x86_platform.c.
Referenced by madt_parse_table(), platform_startup_late(), and x86_setup_direct_map().
const acpi_rsdp_t* acpi_rsdp = NULL |
Definition at line 65 of file x86_platform.c.
Referenced by platform_startup_late().