SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Functions
interrupt.h File Reference

Interrupt control functions for RISC-V architecture. More...

#include "csr.h"
Include dependency graph for interrupt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void riscv_interrupt_enable (void)
 Enable interrupts in RISC-V mode.
 
static void riscv_interrupt_disable (void)
 Disable interrupts in RISC-V mode.
 

Detailed Description

Interrupt control functions for RISC-V architecture.

This header file provides functions for enabling and disabling interrupts on RISC-V architecture.

Function Documentation

◆ riscv_interrupt_disable()

static void riscv_interrupt_disable ( void  )
inlinestatic

Disable interrupts in RISC-V mode.

This function disables machine interrupts by clearing the MIE bit in the Machine Status Register (mstatus).

◆ riscv_interrupt_enable()

static void riscv_interrupt_enable ( void  )
inlinestatic

Enable interrupts in RISC-V mode.

This function enables machine interrupts by setting the MIE bit in the Machine Status Register (mstatus).