Changeset 482 for trunk/hal/x86_64/core/hal_special.c
- Timestamp:
- Aug 21, 2018, 9:52:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_special.c
r457 r482 32 32 struct thread_s; 33 33 34 tls_t *curtls( )34 tls_t *curtls( void ) 35 35 { 36 36 tls_t *cputls; … … 43 43 } 44 44 45 gid_t hal_get_gid( )45 gid_t hal_get_gid( void ) 46 46 { 47 47 return curtls()->tls_gid; 48 48 } 49 49 50 cycle_t hal_time_stamp( )50 cycle_t hal_time_stamp( void ) 51 51 { 52 52 return rdtsc(); 53 53 } 54 54 55 inline reg_t hal_get_sr( )55 inline reg_t hal_get_sr( void ) 56 56 { 57 57 return 0; 58 58 } 59 59 60 uint64_t hal_get_cycles( )60 uint64_t hal_get_cycles( void ) 61 61 { 62 62 uint64_t cycles; … … 73 73 } 74 74 75 struct thread_s *hal_get_current_thread( )75 struct thread_s *hal_get_current_thread( void ) 76 76 { 77 77 return curtls()->tls_thr; … … 85 85 /* -------------------------------------------------------------------------- */ 86 86 87 void hal_fpu_enable( )87 void hal_fpu_enable( void ) 88 88 { 89 89 /* FPU not implemented yet */ … … 92 92 } 93 93 94 void hal_fpu_disable( )94 void hal_fpu_disable( void ) 95 95 { 96 96 /* FPU not implemented yet */ … … 99 99 } 100 100 101 uint32_t hal_get_stack( )101 uint32_t hal_get_stack( void ) 102 102 { 103 103 x86_panic((char *)__func__); … … 111 111 } 112 112 113 uint32_t hal_get_bad_vaddr( )113 uint32_t hal_get_bad_vaddr( void ) 114 114 { 115 115 x86_panic((char *)__func__); … … 128 128 } 129 129 130 void hal_fence( )130 void hal_fence( void ) 131 131 { 132 132 mfence(); 133 133 } 134 134 135 void hal_rdbar( )135 void hal_rdbar( void ) 136 136 { 137 137 x86_panic((char *)__func__); 138 138 } 139 139 140 void hal_core_sleep( )140 void hal_core_sleep( void ) 141 141 { 142 142 x86_panic((char *)__func__);
Note: See TracChangeset
for help on using the changeset viewer.