Changeset 2a0cda72 in mainline for kernel/arch/sparc64/include


Ignore:
Timestamp:
2006-12-14T18:14:47Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7f95cc5d
Parents:
aeaebcc
Message:

On sparc64's tick interrupt, adjust the TICK_COMPARE register instead of the TICK
register. The TICK register now increments linearily and can be used by the get_cycle()
function.

Location:
kernel/arch/sparc64/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/cpu.h

    raeaebcc r2a0cda72  
    5656        ver_reg_t ver;
    5757        uint32_t clock_frequency;       /**< Processor frequency in MHz. */
     58        uint64_t next_tick_cmpr;        /**< Next clock interrupt should be
     59                                         *   generated in this amount of ticks.
     60                                         */
    5861};
    5962       
  • kernel/arch/sparc64/include/cycle.h

    raeaebcc r2a0cda72  
    4040static inline uint64_t get_cycle(void)
    4141{
    42         return 0;       /* not yet supported */
     42        return tick_read();
    4343}
    4444
Note: See TracChangeset for help on using the changeset viewer.