diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-22 02:37:33 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-22 02:37:33 -0700 |
commit | 113d00e652fe6486a0ff76d0fa00557840529d58 (patch) | |
tree | f629b74d2f96874d30ffeb94f7ad386a28e1c791 /machine/encoding.h | |
parent | 1bcab7872c6ae98ab86cdc1a3f567fd263e723d7 (diff) | |
download | riscv-pk-113d00e652fe6486a0ff76d0fa00557840529d58.zip riscv-pk-113d00e652fe6486a0ff76d0fa00557840529d58.tar.gz riscv-pk-113d00e652fe6486a0ff76d0fa00557840529d58.tar.bz2 |
Add preliminary support for the interrupt controller
Diffstat (limited to 'machine/encoding.h')
-rw-r--r-- | machine/encoding.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/machine/encoding.h b/machine/encoding.h index 5405148..bdba5f2 100644 --- a/machine/encoding.h +++ b/machine/encoding.h @@ -39,6 +39,9 @@ #define MIP_STIP (1 << IRQ_S_TIMER) #define MIP_HTIP (1 << IRQ_H_TIMER) #define MIP_MTIP (1 << IRQ_M_TIMER) +#define MIP_SEIP (1 << IRQ_S_EXT) +#define MIP_HEIP (1 << IRQ_H_EXT) +#define MIP_MEIP (1 << IRQ_M_EXT) #define SIP_SSIP MIP_SSIP #define SIP_STIP MIP_STIP @@ -61,9 +64,9 @@ #define IRQ_S_TIMER 5 #define IRQ_H_TIMER 6 #define IRQ_M_TIMER 7 -#define IRQ_S_DEV 9 -#define IRQ_H_DEV 10 -#define IRQ_M_DEV 11 +#define IRQ_S_EXT 9 +#define IRQ_H_EXT 10 +#define IRQ_M_EXT 11 #define IRQ_COP 12 #define IRQ_HOST 13 |