structstd.builtin.CallingConvention.RiscvInterruptOptions[src]

Options for the riscv32_interrupt and riscv64_interrupt calling conventions.

Fields

incoming_stack_alignment: ?u64 = null

The boundary the stack is aligned to when the function is called. null means the default for this calling convention.

mode: PrivilegeMode

The privilege mode.

Source Code

Source code
pub const RiscvInterruptOptions = struct {
    /// The boundary the stack is aligned to when the function is called.
    /// `null` means the default for this calling convention.
    incoming_stack_alignment: ?u64 = null,
    /// The privilege mode.
    mode: PrivilegeMode,

    pub const PrivilegeMode = enum(u2) {
        supervisor,
        machine,
    };
}