Ignore:
Timestamp:
Jul 31, 2017, 1:59:52 PM (7 years ago)
Author:
alain
Message:

Several modifs in the generic scheduler and in the hal_context to
fix the context switch mechanism.

File:
1 edited

Legend:

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

    r279 r296  
    3434//      Generic Special Registers Access API (implementation in hal_special.c)
    3535//
    36 // ALMOS-MKH uses the following API to access the MMU and other core protected registers.
     36// ALMOS-MKH uses the following API to access the core protected registers.
    3737///////////////////////////////////////////////////////////////////////////////////////////
    3838
     
    5050 * This function returns the current value of the hardware cycles counter.
    5151 ****************************************************************************************/
    52 inline cycle_t hal_time_stamp();
     52inline reg_t hal_time_stamp();
    5353
    5454/*****************************************************************************************
    55  * This function returns the content of the calling core private cycles counter.
     55 * This function returns the content of the calling core private cycles counter,
     56 * taking into account overflow if the core hardware register is not 64 bits.
    5657 * This cycle counter is reset when the core is initialised (at each boot).
    57  * If the hardware counter is not a 64 bits register, this function must handle overflow.
    5858 ****************************************************************************************/
    59 uint64_t hal_get_cycles();
     59cycle_t hal_get_cycles();
    6060
    6161/*****************************************************************************************
     
    6868 ****************************************************************************************/
    6969void hal_set_current_thread( struct thread_s * thread );
     70
     71/*****************************************************************************************
     72 * This function registers a new kentry base address in the relevant core register.
     73 ****************************************************************************************/
     74void hal_set_ebase( reg_t base );
    7075
    7176/*****************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.