riscv: use standard MSTATUS

This is no longer needed, since all in-tree platforms are only using
the standard mstatus formats. Remove it to avoid the complexity.

Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Olof Johansson 2020-01-03 18:18:24 -08:00 committed by Anas Nashif
commit a6b3b616f5
11 changed files with 34 additions and 79 deletions

View file

@ -6,7 +6,7 @@
#include <linker/sections.h>
#include <toolchain.h>
#include <soc.h>
#include <arch/cpu.h>
/* Exports */
GTEXT(_WdogInit)
@ -39,7 +39,7 @@ GTEXT(_WdogInit)
*/
SECTION_FUNC(TEXT, _WdogInit)
/* Disable interrupts if they're on. This is timing-sensitive code. */
csrrc t0, mstatus, SOC_MSTATUS_IEN
csrrc t0, mstatus, MSTATUS_IEN
/* Get base address. */
li t1, WDOG_BASE