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:
parent
3d470b0c12
commit
f2787448e1
4
cpu/fe310/include/vendor/platform.h
vendored
4
cpu/fe310/include/vendor/platform.h
vendored
@ -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"
|
||||
|
4
cpu/riscv_common/include/vendor/riscv_csr.h
vendored
4
cpu/riscv_common/include/vendor/riscv_csr.h
vendored
@ -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
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user