diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-09-09 15:39:40 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-09-09 15:39:40 -0700 |
commit | 03e016c3d7909ffd2c162ec21dff61076442fa05 (patch) | |
tree | ceb534368a4dceea4b85928b8d7942f33695cac8 /pk/pcr.h | |
parent | 7fc9ae774bd8c64e53cb35fd88d467c7a18db55f (diff) | |
download | pk-03e016c3d7909ffd2c162ec21dff61076442fa05.zip pk-03e016c3d7909ffd2c162ec21dff61076442fa05.tar.gz pk-03e016c3d7909ffd2c162ec21dff61076442fa05.tar.bz2 |
[pk, sim] added interrupt support to sim; added timer interrupt
Diffstat (limited to 'pk/pcr.h')
-rw-r--r-- | pk/pcr.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8,18 +8,22 @@ #define SR_S 0x0000000000000008 #define SR_EF 0x0000000000000010 #define SR_UX 0x0000000000000020 -#define SR_KX 0x0000000000000040 +#define SR_SX 0x0000000000000040 #define SR_IM 0x000000000000FF00 #define PCR_SR 0 #define PCR_EPC 1 #define PCR_BADVADDR 2 #define PCR_TBR 3 +#define PCR_COUNT 4 +#define PCR_COMPARE 5 #define PCR_TOHOST 16 #define PCR_FROMHOST 17 #define PCR_K0 24 #define PCR_K1 25 +#define TIMER_PERIOD 0x1000000 + #define ASM_CR(r) _ASM_CR(r) #define _ASM_CR(r) $cr##r |