Ignore:
Timestamp:
Jun 29, 2017, 1:40:15 PM (7 years ago)
Author:
alain
Message:

hal_special: replace hal_time_stamp() by hal_get_cycles()
hal_remote : remove hal_remove_unc()

File:
1 edited

Legend:

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

    r23 r95  
    3131//
    3232// When moving data between user space and kernel space, the user address is always
    33 // a virtual address, but the kernel address can be a physical address, on some
    34 // architectures. For sake of portability, data transfers must use the following API.
     33// a virtual address, but the kernel address can be a physical address, on 32 bits
     34// architectures, and require MMU dynamic activation/deactivation.
     35// For sake of portability, user/kernel data transfers must use the following API.
    3536//////////////////////////////////////////////////////////////////////////////////////////
    3637
     
    6162
    6263/*****************************************************************************************
     64 * This function tranfers a NUL terminated string from the user space to the kernel space.
     65 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.
     66 *****************************************************************************************
     67 * @ u_dst     : destination buffer address in user space.
     68 * @ k_src     : source address in kernel space.
     69 ****************************************************************************************/
     70extern void hal_strcpy_from_uspace( char * k_dst,
     71                                    char * u_src );
     72
     73/*****************************************************************************************
     74 * This function tranfers a NUL terminated string from the kernel space to the user space.
     75 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.
     76 *****************************************************************************************
     77 * @ u_dst     : destination buffer address in user space.
     78 * @ k_src     : source address in kernel space.
     79 ****************************************************************************************/
     80extern void hal_strcpy_to_uspace( char * u_dst,
     81                                  char * k_src );
     82
     83/*****************************************************************************************
    6384 * This function computes the length of a string in user space.
    6485 * If the kernel uses physical addresses, it activates the MMU to access the user buffer.
     
    6788 * @ return length of the string.
    6889 ****************************************************************************************/
    69 uint32_t hal_strlen_from_uspace( char     * string );
     90uint32_t hal_strlen_from_uspace( char * string );
    7091
    7192
Note: See TracChangeset for help on using the changeset viewer.