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:
parent
19ac87c4f0
commit
a6b3b616f5
11 changed files with 34 additions and 79 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue