Rev 1881 | Rev 2044 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1881 | Rev 1899 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | { |
50 | { |
51 | tick_compare_reg_t compare; |
51 | tick_compare_reg_t compare; |
52 | 52 | ||
53 | interrupt_register(14, "tick_int", tick_interrupt); |
53 | interrupt_register(14, "tick_int", tick_interrupt); |
54 | compare.int_dis = false; |
54 | compare.int_dis = false; |
55 | compare.tick_cmpr = bootinfo.processor.clock_frequency/HZ; |
55 | compare.tick_cmpr = CPU->arch.clock_frequency/HZ; |
56 | tick_compare_write(compare.value); |
56 | tick_compare_write(compare.value); |
57 | tick_write(0); |
57 | tick_write(0); |
58 | } |
58 | } |
59 | 59 | ||
60 | /** Process tick interrupt. |
60 | /** Process tick interrupt. |