diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-02-04 16:09:47 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2011-02-04 16:09:47 -0800 |
commit | 5c9d48945e6c62e77f22e32efcb963a56bf3dc74 (patch) | |
tree | 39008b7c01fc76ec86369c1d0b8d676896748bf9 /pk/pcr.h | |
parent | af2d471a4e6c2e4551238a2cc209f9c0d997c82f (diff) | |
download | pk-5c9d48945e6c62e77f22e32efcb963a56bf3dc74.zip pk-5c9d48945e6c62e77f22e32efcb963a56bf3dc74.tar.gz pk-5c9d48945e6c62e77f22e32efcb963a56bf3dc74.tar.bz2 |
[sim,pk] added interrupt-pending field to cause reg
Diffstat (limited to 'pk/pcr.h')
-rw-r--r-- | pk/pcr.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -28,6 +28,12 @@ #define CR_TID 29 #define TIMER_PERIOD 0x1000000 +#define TIMER_IRQ 7 + +#define CAUSE_EXCCODE 0x000000FF +#define CAUSE_IP 0x0000FF00 +#define CAUSE_EXCCODE_SHIFT 0 +#define CAUSE_IP_SHIFT 8 #define ASM_CR(r) _ASM_CR(r) #define _ASM_CR(r) $cr##r |