Changeset 480 for trunk/hal/generic/hal_special.h
- Timestamp:
- Aug 21, 2018, 9:51:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_special.h
r457 r480 41 41 * This function returns the calling core status register value. 42 42 ****************************************************************************************/ 43 inline reg_t hal_get_sr( );43 inline reg_t hal_get_sr( void ); 44 44 45 45 /***************************************************************************************** 46 46 * This function returns the global core identifier from the calling core register. 47 47 ****************************************************************************************/ 48 inline gid_t hal_get_gid( );48 inline gid_t hal_get_gid( void ); 49 49 50 50 /***************************************************************************************** … … 52 52 * This cycle counter is reset when the core is initialised (at each boot). 53 53 ****************************************************************************************/ 54 inline reg_t hal_time_stamp( );54 inline reg_t hal_time_stamp( void ); 55 55 56 56 /***************************************************************************************** … … 59 59 * This cycle counter is reset when the core is initialised (at each boot). 60 60 ****************************************************************************************/ 61 cycle_t hal_get_cycles( );61 cycle_t hal_get_cycles( void ); 62 62 63 63 /***************************************************************************************** 64 64 * This function returns the current thread pointer from the calling core register. 65 65 ****************************************************************************************/ 66 inline struct thread_s * hal_get_current_thread( );66 inline struct thread_s * hal_get_current_thread( void ); 67 67 68 68 /***************************************************************************************** … … 74 74 * This function writes into the proper core register to enable the floating point unit. 75 75 ****************************************************************************************/ 76 void hal_fpu_enable( );76 void hal_fpu_enable( void ); 77 77 78 78 /***************************************************************************************** 79 79 * This function writes into the proper core register to disable the floating point unit. 80 80 ****************************************************************************************/ 81 void hal_fpu_disable( );81 void hal_fpu_disable( void ); 82 82 83 83 /***************************************************************************************** 84 84 * This function returns the current value of stack pointer from core register. 85 85 ****************************************************************************************/ 86 uint32_t hal_get_stack( );86 uint32_t hal_get_stack( void ); 87 87 88 88 /***************************************************************************************** 89 89 * This function registers a new value in the core stack pointer and returns previous one. 90 90 ****************************************************************************************/ 91 externinline uint32_t hal_set_stack( void * new_val );91 inline uint32_t hal_set_stack( void * new_val ); 92 92 93 93 /***************************************************************************************** 94 94 * This function returns the faulty address in case of address exception. 95 95 ****************************************************************************************/ 96 uint32_t hal_get_bad_vaddr( );96 uint32_t hal_get_bad_vaddr( void ); 97 97 98 98 /***************************************************************************************** … … 112 112 * This blocking function flushes the write buffer to synchronize all pending writes. 113 113 ****************************************************************************************/ 114 void hal_fence( );114 void hal_fence( void ); 115 115 116 116 /***************************************************************************************** 117 117 * This forbids code reordering accross this barrier by the compiler. 118 118 ****************************************************************************************/ 119 void hal_rdbar( );119 void hal_rdbar( void ); 120 120 121 121 /***************************************************************************************** 122 122 * This function forces the calling core in idle-low-power mode. 123 123 ****************************************************************************************/ 124 void hal_core_sleep( );124 void hal_core_sleep( void ) __attribute__((__noreturn__)); 125 125 126 126 /*****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.