Ignore:
Timestamp:
2011-08-03T17:34:57Z (15 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
1940326
Parents:
52a79081 (diff), 3fab770 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/tick.c

    r52a79081 ra33f0a6  
    4444#include <debug.h>
    4545
    46 #define TICK_RESTART_TIME       50      /* Worst case estimate. */
    47 
    4846/** Initialize tick and stick interrupt. */
    4947void tick_init(void)
     
    5149        /* initialize TICK interrupt */
    5250        tick_compare_reg_t compare;
     51        softint_reg_t clear;
    5352
    5453        interrupt_register(14, "tick_int", tick_interrupt);
     
    5958        tick_compare_write(compare.value);
    6059
     60        clear.value = 0;
     61        clear.tick_int = 1;
     62        clear_softint_write(clear.value);
     63
    6164#if defined (US3) || defined (SUN4V)
    6265        /* disable STICK interrupts and clear any pending ones */
    6366        tick_compare_reg_t stick_compare;
    64         softint_reg_t clear;
    6567
    6668        stick_compare.value = stick_compare_read();
Note: See TracChangeset for help on using the changeset viewer.