RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros | Functions | Variables
cpucounter.c File Reference

This source file contains the implementation of the CPU Counter. More...

#include <bsp/leon3.h>
#include <grlib/irqamp.h>
#include <rtems/counter.h>
#include <rtems/sysinit.h>
#include <rtems/timecounter.h>

Macros

#define LEON3_GET_TIMECOUNT_INIT   leon3_timecounter_get_dummy
 

Functions

 __asm__ ("\t.section\t\".text\"\n" "\t.align\t4\n" "\t.globl\t_CPU_Counter_read\n" "\t.globl\t_SPARC_Counter_read_ISR_disabled\n" "\t.type\t_CPU_Counter_read, #function\n" "\t.type\t_SPARC_Counter_read_ISR_disabled, #function\n" "_CPU_Counter_read:\n" "_SPARC_Counter_read_ISR_disabled:\n" "\tsethi\t%hi(leon3_timecounter_instance), %o0\n" "\tld [%o0 + %lo(leon3_timecounter_instance)], %o1\n" "\tor\t%o0, %lo(leon3_timecounter_instance), %o0\n" "\tor\t%o7, %g0, %g1\n" "\tcall\t%o1, 0\n" "\t or\t%g1, %g0, %o7\n" "\t.previous\n")
 
uint32_t _CPU_Counter_frequency (void)
 Gets the current CPU counter frequency in Hz.
 
 RTEMS_SYSINIT_ITEM (leon3_counter_initialize, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_FIRST)
 

Variables

leon3_timecounter leon3_timecounter_instance
 Provides the LEON3-specific timecounter.
 

Detailed Description

This source file contains the implementation of the CPU Counter.