Changeset 965dc18 in mainline for kernel/arch/sparc64/src/drivers/tick.c
- Timestamp:
- 2008-12-05T19:59:03Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49093a4
- Parents:
- 0258e67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/tick.c
r0258e67 r965dc18 46 46 #define TICK_RESTART_TIME 50 /* Worst case estimate. */ 47 47 48 /** Initialize tick interrupt. */48 /** Initialize tick and stick interrupt. */ 49 49 void tick_init(void) 50 50 { 51 /* initialize TICK interrupt */ 51 52 tick_compare_reg_t compare; 52 53 53 54 interrupt_register(14, "tick_int", tick_interrupt); 54 55 compare.int_dis = false; … … 57 58 tick_compare_write(compare.value); 58 59 tick_write(0); 60 61 #if defined (US3) 62 /* disable STICK interrupts and clear any pending ones */ 63 tick_compare_reg_t stick_compare; 64 softint_reg_t clear; 65 66 stick_compare.value = stick_compare_read(); 67 stick_compare.int_dis = true; 68 stick_compare.tick_cmpr = 0; 69 stick_compare_write(stick_compare.value); 70 71 clear.value = 0; 72 clear.stick_int = 1; 73 clear_softint_write(clear.value); 74 #endif 59 75 } 60 76 … … 68 84 softint_reg_t softint, clear; 69 85 uint64_t drift; 70 86 71 87 softint.value = softint_read(); 72 88
Note:
See TracChangeset
for help on using the changeset viewer.