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

Go to the source code of this file.

Classes

class  RiscV64UartDevice
 

Macros

#define UART0_IRQ   10
 

Functions

void platform_startup_early ()
 
void platform_startup_setup_kernel_mm ()
 
void platform_startup_late ()
 

Variables

static Buffer< MOS_PAGE_SIZEuart_buf
 
static RiscV64UartDevice uart_serial_device { (void *) pa_va(0x10000000) }
 
SerialConsole uart_console { "riscv_uart1", CONSOLE_CAP_READ, &uart_buf, &uart_serial_device, LightBlue, Black }
 
static mos_platform_info_t riscv64_platform_info
 
mos_platform_info_t *const platform_info = &riscv64_platform_info
 

Macro Definition Documentation

◆ UART0_IRQ

#define UART0_IRQ   10

Referenced by platform_startup_late().

Function Documentation

◆ platform_startup_early()

void platform_startup_early ( )

Definition at line 67 of file riscv64_platform.cpp.

Referenced by mos_start_kernel().

◆ platform_startup_setup_kernel_mm()

void platform_startup_setup_kernel_mm ( )

Definition at line 80 of file riscv64_platform.cpp.

Referenced by mos_start_kernel().

+ Here is the call graph for this function:

◆ platform_startup_late()

void platform_startup_late ( )

Definition at line 99 of file riscv64_platform.cpp.

Referenced by mos_start_kernel().

+ Here is the call graph for this function:

Variable Documentation

◆ uart_buf

Buffer<MOS_PAGE_SIZE> uart_buf
static

Definition at line 14 of file riscv64_platform.cpp.

◆ uart_serial_device

RiscV64UartDevice uart_serial_device { (void *) pa_va(0x10000000) }
static

Definition at line 58 of file riscv64_platform.cpp.

◆ uart_console

Definition at line 60 of file riscv64_platform.cpp.

Referenced by platform_startup_late().

◆ riscv64_platform_info

mos_platform_info_t riscv64_platform_info
static
Initial value:
= {
.boot_console = &uart_console,
}
SerialConsole uart_console

Definition at line 62 of file riscv64_platform.cpp.

◆ platform_info