Rev 1004 | Rev 1265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1004 | Rev 1007 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | #include <arch/types.h> |
31 | #include <arch/types.h> |
32 | #include <arch.h> |
32 | #include <arch.h> |
33 | #include <time/clock.h> |
33 | #include <time/clock.h> |
34 | #include <print.h> |
34 | #include <print.h> |
35 | 35 | ||
- | 36 | ||
- | 37 | void start_decrementer(void) |
|
- | 38 | { |
|
- | 39 | asm volatile ( |
|
- | 40 | "mtdec %0\n" |
|
- | 41 | :: "r" (1000) |
|
- | 42 | ); |
|
- | 43 | } |
|
- | 44 | ||
- | 45 | ||
36 | static void exception_decrementer(int n, istate_t *istate) |
46 | static void exception_decrementer(int n, istate_t *istate) |
37 | { |
47 | { |
38 | clock(); |
48 | clock(); |
- | 49 | start_decrementer(); |
|
39 | } |
50 | } |
40 | 51 | ||
41 | 52 | ||
42 | /* Initialize basic tables for exception dispatching */ |
53 | /* Initialize basic tables for exception dispatching */ |
43 | void interrupt_init(void) |
54 | void interrupt_init(void) |