Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset adfdbd5 in mainline


Ignore:
Timestamp:
2011-06-18T15:03:06Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial
Children:
1d1bb0f, bd08239
Parents:
ebbe1e4
Message:

sparc64: Clear any pending TICK interrupts in tick_init().

File:
1 edited

Legend:

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

    rebbe1e4 radfdbd5  
    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.