Changeset adfdbd5 in mainline
- Timestamp:
- 2011-06-18T15:03:06Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1d1bb0f, bd08239
- Parents:
- ebbe1e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/tick.c
rebbe1e4 radfdbd5 44 44 #include <debug.h> 45 45 46 #define TICK_RESTART_TIME 50 /* Worst case estimate. */47 48 46 /** Initialize tick and stick interrupt. */ 49 47 void tick_init(void) … … 51 49 /* initialize TICK interrupt */ 52 50 tick_compare_reg_t compare; 51 softint_reg_t clear; 53 52 54 53 interrupt_register(14, "tick_int", tick_interrupt); … … 59 58 tick_compare_write(compare.value); 60 59 60 clear.value = 0; 61 clear.tick_int = 1; 62 clear_softint_write(clear.value); 63 61 64 #if defined (US3) || defined (SUN4V) 62 65 /* disable STICK interrupts and clear any pending ones */ 63 66 tick_compare_reg_t stick_compare; 64 softint_reg_t clear;65 67 66 68 stick_compare.value = stick_compare_read();
Note:
See TracChangeset
for help on using the changeset viewer.