aboutsummaryrefslogtreecommitdiff
path: root/pk/pcr.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-02-04 16:09:47 -0800
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-02-04 16:09:47 -0800
commit5c9d48945e6c62e77f22e32efcb963a56bf3dc74 (patch)
tree39008b7c01fc76ec86369c1d0b8d676896748bf9 /pk/pcr.h
parentaf2d471a4e6c2e4551238a2cc209f9c0d997c82f (diff)
downloadpk-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pk/pcr.h b/pk/pcr.h
index fb0d1bf..dd135ab 100644
--- a/pk/pcr.h
+++ b/pk/pcr.h
@@ -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