Changeset 296 for trunk/hal/generic/hal_special.h
- Timestamp:
- Jul 31, 2017, 1:59:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_special.h
r279 r296 34 34 // Generic Special Registers Access API (implementation in hal_special.c) 35 35 // 36 // ALMOS-MKH uses the following API to access the MMU and othercore protected registers.36 // ALMOS-MKH uses the following API to access the core protected registers. 37 37 /////////////////////////////////////////////////////////////////////////////////////////// 38 38 … … 50 50 * This function returns the current value of the hardware cycles counter. 51 51 ****************************************************************************************/ 52 inline cycle_t hal_time_stamp();52 inline reg_t hal_time_stamp(); 53 53 54 54 /***************************************************************************************** 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. 56 57 * 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.58 58 ****************************************************************************************/ 59 uint64_t hal_get_cycles();59 cycle_t hal_get_cycles(); 60 60 61 61 /***************************************************************************************** … … 68 68 ****************************************************************************************/ 69 69 void 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 ****************************************************************************************/ 74 void hal_set_ebase( reg_t base ); 70 75 71 76 /*****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.