diff options
author | Tom Rini <trini@konsulko.com> | 2018-12-05 08:24:50 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-12-05 08:24:50 -0500 |
commit | a77a8fde7bb850178c2e4ad3db354b536114ea32 (patch) | |
tree | b0f5072061ddd96a7611b11517a27dbecd69968d /arch/riscv/include/asm/encoding.h | |
parent | 9649c5343fb1e105109f8aac499134dd4bd723ca (diff) | |
parent | 48cbf6246052de10d35b616b5efb2f783904a49d (diff) |
Merge git://git.denx.de/u-boot-riscv
- Fix BBL may be corrupted problem.
- Support U-Boot run in S-mode.
Diffstat (limited to 'arch/riscv/include/asm/encoding.h')
-rw-r--r-- | arch/riscv/include/asm/encoding.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/encoding.h b/arch/riscv/include/asm/encoding.h index 9ea50ce640..97cf906aa6 100644 --- a/arch/riscv/include/asm/encoding.h +++ b/arch/riscv/include/asm/encoding.h @@ -7,6 +7,12 @@ #ifndef RISCV_CSR_ENCODING_H #define RISCV_CSR_ENCODING_H +#ifdef CONFIG_RISCV_SMODE +#define MODE_PREFIX(__suffix) s##__suffix +#else +#define MODE_PREFIX(__suffix) m##__suffix +#endif + #define MSTATUS_UIE 0x00000001 #define MSTATUS_SIE 0x00000002 #define MSTATUS_HIE 0x00000004 |