Subversion Repositories HelenOS

Rev

Rev 2071 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2633
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_mips32_CYCLE_H_
35
#ifndef KERN_mips32_CYCLE_H_
36
#define KERN_mips32_CYCLE_H_
36
#define KERN_mips32_CYCLE_H_
37
 
37
 
-
 
38
#include <arch/cp0.h>
-
 
39
#include <arch/interrupt.h>
-
 
40
 
38
static inline uint64_t get_cycle(void)
41
static inline uint64_t get_cycle(void)
39
{
42
{
40
    return 0;
43
    return ((uint64_t) count_hi << 32) + ((uint64_t) cp0_count_read());
41
}
44
}
42
 
45
 
43
#endif
46
#endif
44
 
47
 
45
/** @}
48
/** @}