Module arch

Module arch 

Source
Expand description

Architecture-specific code for Scarlet kernel

This module contains architecture-specific implementations and definitions for the Scarlet kernel. Each architecture has its own set of files that implement the necessary functionality.

Re-exports§

pub use user_context::init_from_fdt as init_user_context_from_fdt;
pub use user_context::user_fpu_enabled;
pub use user_context::user_vector_enabled;
pub use riscv64::context::KernelContext;
pub use riscv64::fpu;
pub use riscv64::*;

Modules§

riscv64
user_context
Runtime gating for user-mode FPU / Vector context handling.

Structs§

UserEntryOptions
Options applied right before returning to user mode.

Enums§

UserReturnIrqPolicy
Policy for whether user-mode should run with IRQs enabled immediately after returning from the kernel (e.g. sret/eret).

Functions§

configure_user_entry
Configure architecture-specific state for the upcoming return to user mode.