Changeset 121 for trunk/hal/generic
- Timestamp:
- Jul 3, 2017, 2:17:20 PM (7 years ago)
- Location:
- trunk/hal/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_remote.h
r95 r121 174 174 uint32_t size ); 175 175 176 /***************************************************************************************** 177 * This function makes a copy from a source character string to another destination 178 * character string, including the NUL terminating character. 179 ***************************************************************************************** 180 * @ dst : extended pointer to destination char array. 181 * @ src : extended pointer to source char array. 182 ****************************************************************************************/ 183 void hal_remote_strcpy( xptr_t dst, 184 xptr_t src ); 185 176 186 #endif /* _HAL_REMOTE_H_ */ -
trunk/hal/generic/hal_special.h
r101 r121 40 40 * This function returns the global core identifier from the calling core register. 41 41 ****************************************************************************************/ 42 gid_t hal_get_gid(); 42 inline gid_t hal_get_gid(); 43 44 /***************************************************************************************** 45 * This function returns the current value of the hardware cycles counter. 46 ****************************************************************************************/ 47 inline cycle_t hal_time_stamp(); 43 48 44 49 /***************************************************************************************** … … 52 57 * This function returns the current thread pointer from the calling core register. 53 58 ****************************************************************************************/ 54 struct thread_s * hal_get_current_thread();59 inline struct thread_s * hal_get_current_thread(); 55 60 56 61 /***************************************************************************************** -
trunk/hal/generic/hal_uspace.h
r95 r121 64 64 * This function tranfers a NUL terminated string from the user space to the kernel space. 65 65 * If the kernel uses physical addresses, it activates the MMU to access the user buffer. 66 * TODO : implement the max_size argument handling 66 67 ***************************************************************************************** 67 68 * @ u_dst : destination buffer address in user space. 68 69 * @ k_src : source address in kernel space. 70 * @ max_size : max number of characters to be copied. 69 71 ****************************************************************************************/ 70 extern void hal_strcpy_from_uspace( char * k_dst, 71 char * u_src ); 72 extern void hal_strcpy_from_uspace( char * k_dst, 73 char * u_src, 74 uint32_t max_size ); 72 75 73 76 /***************************************************************************************** 74 77 * This function tranfers a NUL terminated string from the kernel space to the user space. 75 78 * If the kernel uses physical addresses, it activates the MMU to access the user buffer. 79 * TODO : implement the max_size argument handling 76 80 ***************************************************************************************** 77 81 * @ u_dst : destination buffer address in user space. 78 82 * @ k_src : source address in kernel space. 83 * @ max_size : max number of characters to be copied. 79 84 ****************************************************************************************/ 80 extern void hal_strcpy_to_uspace( char * u_dst, 81 char * k_src ); 85 extern void hal_strcpy_to_uspace( char * u_dst, 86 char * k_src, 87 uint32_t max_size ); 82 88 83 89 /*****************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.