1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/riscv_common: Move MCAUSE defines to riscv_common

This commit is contained in:
Koen Zandberg 2021-02-17 13:52:35 +01:00 committed by Benjamin Valentin
parent 3d470b0c12
commit f2787448e1
3 changed files with 4 additions and 6 deletions

View File

@ -3,10 +3,6 @@
#ifndef _SIFIVE_PLATFORM_H
#define _SIFIVE_PLATFORM_H
// Some things missing from the official encoding.h
#define MCAUSE_INT 0x80000000
#define MCAUSE_CAUSE 0x7FFFFFFF
#include "vendor/aon.h"

View File

@ -22,6 +22,10 @@
#ifndef RISCV_CSR_H
#define RISCV_CSR_H
/* Some things missing from the official encoding.h */
#define MCAUSE_INT 0x80000000
#define MCAUSE_CAUSE 0x7FFFFFFF
#define MSTATUS_UIE 0x00000001
#define MSTATUS_SIE 0x00000002
#define MSTATUS_HIE 0x00000004

View File

@ -26,8 +26,6 @@
#include "sched.h"
#include "context_frame.h"
#include "vendor/platform.h"
/**
* @brief Noticeable marker marking the beginning of a stack segment
*