Changeset 121 for trunk/hal/generic


Ignore:
Timestamp:
Jul 3, 2017, 2:17:20 PM (7 years ago)
Author:
alain
Message:

Fix bugs in hal_remote, hal uspace, hal_special

Location:
trunk/hal/generic
Files:
3 edited

Legend:

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

    r95 r121  
    174174                        uint32_t size );
    175175
     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 ****************************************************************************************/
     183void hal_remote_strcpy( xptr_t dst,
     184                        xptr_t src );
     185
    176186#endif  /* _HAL_REMOTE_H_ */
  • trunk/hal/generic/hal_special.h

    r101 r121  
    4040 * This function returns the global core identifier from the calling core register.
    4141 ****************************************************************************************/
    42 gid_t hal_get_gid();
     42inline gid_t hal_get_gid();
     43
     44/*****************************************************************************************
     45 * This function returns the current value of the hardware cycles counter.
     46 ****************************************************************************************/
     47inline cycle_t hal_time_stamp();
    4348
    4449/*****************************************************************************************
     
    5257 * This function returns the current thread pointer from the calling core register.
    5358 ****************************************************************************************/
    54 struct thread_s * hal_get_current_thread();
     59inline struct thread_s * hal_get_current_thread();
    5560
    5661/*****************************************************************************************
  • trunk/hal/generic/hal_uspace.h

    r95 r121  
    6464 * This function tranfers a NUL terminated string from the user space to the kernel space.
    6565 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.
     66 * TODO : implement the max_size argument handling
    6667 *****************************************************************************************
    6768 * @ u_dst     : destination buffer address in user space.
    6869 * @ k_src     : source address in kernel space.
     70 * @ max_size  : max number of characters to be copied.
    6971 ****************************************************************************************/
    70 extern void hal_strcpy_from_uspace( char * k_dst,
    71                                     char * u_src );
     72extern void hal_strcpy_from_uspace( char     * k_dst,
     73                                    char     * u_src,
     74                                    uint32_t   max_size );
    7275
    7376/*****************************************************************************************
    7477 * This function tranfers a NUL terminated string from the kernel space to the user space.
    7578 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.
     79 * TODO : implement the max_size argument handling
    7680 *****************************************************************************************
    7781 * @ u_dst     : destination buffer address in user space.
    7882 * @ k_src     : source address in kernel space.
     83 * @ max_size  : max number of characters to be copied.
    7984 ****************************************************************************************/
    80 extern void hal_strcpy_to_uspace( char * u_dst,
    81                                   char * k_src );
     85extern void hal_strcpy_to_uspace( char     * u_dst,
     86                                  char     * k_src,
     87                                  uint32_t   max_size );
    8288
    8389/*****************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.