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

Fix bugs in hal_remote, hal uspace, hal_special

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.