Changeset 101 for trunk/hal


Ignore:
Timestamp:
Jun 29, 2017, 4:44:52 PM (7 years ago)
Author:
alain
Message:

euh...

Location:
trunk/hal
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_special.h

    r95 r101  
    22 * hal_special.h - Generic Special Registers Access API definition.
    33 *
    4  * Authors   Ghassan Almaless (2008,2009,2010,2011,2012)
    5  *           Alain Greiner    (2016,2017)
     4 * Authors   Alain Greiner    (2016,2017)
    65 *
    76 * Copyright (c)  UPMC Sorbonne Universites
     
    4443
    4544/*****************************************************************************************
    46  * This function returns the content of the calling core cycles counter.
    47  * This cycle counter is reset when the core is initialised (at reboot).
    48  * If the hardware counter is not a 64 bits register, this function is in charge
    49  * of handling overflow.
     45 * This function returns the content of the calling core private cycles counter.
     46 * This cycle counter is reset when the core is initialised (at each boot).
     47 * If the hardware counter is not a 64 bits register, this function must handle overflow.
    5048 ****************************************************************************************/
    51 uint64_t hal_time_stamp();
     49uint64_t hal_get_cycles();
    5250
    5351/*****************************************************************************************
  • trunk/hal/tsar_mips32/core/hal_do_exceptions.c

    r62 r101  
    354354        except_dmsg("====================================================================\n");
    355355        except_dmsg("Kernel Panic: thread %x in process %x on core %x at cycle %d\n",
    356                 this->trdid , process->pid , gid , hal_time_stamp() );
     356                this->trdid , process->pid , gid , hal_get_cycles() );
    357357
    358358        except_dmsg("Processor State:\n");
  • trunk/hal/tsar_mips32/core/hal_exception.c

    r62 r101  
    153153    printk("\n====================================================================\n");
    154154        printk("  thread %x / process %x / core %x / cycle %d\n",
    155            this->trdid , this->process->pid , this->core->gid , hal_time_stamp() );
     155           this->trdid , this->process->pid , this->core->gid , hal_get_cycles() );
    156156
    157157        printk("  - Processor State:\n");
  • trunk/hal/tsar_mips32/core/hal_special.c

    r95 r101  
    22 * hal_special.c - implementation of Generic Special Register Access API for TSAR-MIPS32
    33 *
    4  * Author  Ghassan Almaless (2008,2009,2010,2011,2012)
    5  *         Alain Greiner    (2016)
     4 * Author    Alain Greiner (2016,2017)
    65 *
    76 * Copyright (c) UPMC Sorbonne Universites
     
    2625#include <hal_types.h>
    2726#include <hal_special.h>
     27#include <core.h>
     28#include <thread.h>
    2829
    2930/****  Forward declarations ****/
    3031
    3132struct thread_s;
     33
    3234
    3335///////////////////
  • trunk/hal/tsar_mips32/drivers/soclib_hba.c

    r75 r101  
    289289            ioc_dmsg("INFO in %s : thread %x at cycle %d\n",
    290290            __FUNCTION__ , hal_remote_lw( XPTR( client_cxy , &client_ptr->trdid ) ) ,
    291             hal_time_stamp() );
     291            hal_get_cycles() );
    292292        }
    293293    }
  • trunk/hal/x86_64/core/hal_special.c

    r94 r101  
    7373}
    7474
    75 uint32_t hal_time_stamp()
     75uint32_t hal_get_cycles()
    7676{
    7777        return (uint32_t)rdtsc(); // XXX will be fixed soon
Note: See TracChangeset for help on using the changeset viewer.