mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdePkg/BaseLib: RISC-V: Add FPU CSR constants
* Define CSR fcsr * Define bitmasks for vs and fs bit fields in the mstatus register Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
7123940665
commit
28dd588ca8
@ -20,6 +20,7 @@
|
||||
#define MSTATUS_SPP (1UL << MSTATUS_SPP_SHIFT)
|
||||
#define MSTATUS_MPP_SHIFT 11
|
||||
#define MSTATUS_MPP (3UL << MSTATUS_MPP_SHIFT)
|
||||
#define MSTATUS_FS 0x00006000UL
|
||||
|
||||
#define SSTATUS_SIE MSTATUS_SIE
|
||||
#define SSTATUS_SPIE_SHIFT MSTATUS_SPIE_SHIFT
|
||||
@ -76,6 +77,9 @@
|
||||
#define CSR_CYCLE 0xc00
|
||||
#define CSR_TIME 0xc01
|
||||
|
||||
/* Floating-Point */
|
||||
#define CSR_FCSR 0x003
|
||||
|
||||
/* Supervisor Trap Setup */
|
||||
#define CSR_SSTATUS 0x100
|
||||
#define CSR_SEDELEG 0x102
|
||||
|
Loading…
x
Reference in New Issue
Block a user