Changeset 95 for trunk/hal/generic
- Timestamp:
- Jun 29, 2017, 1:40:15 PM (7 years ago)
- Location:
- trunk/hal/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_remote.h
r72 r95 105 105 106 106 /***************************************************************************************** 107 * This function reads an uncachable 32 bits word in a remote cluster.108 *****************************************************************************************109 * @ xp : extended pointer to remote data110 * @ return read value111 ****************************************************************************************/112 uint32_t hal_remote_lw_unc( xptr_t xp );113 114 /*****************************************************************************************115 107 * This non blocking function makes an atomic Compare-And-Swap in a remote cluster. 116 108 ***************************************************************************************** … … 136 128 137 129 /***************************************************************************************** 138 * This function makes an atomic "and" between a local mask value and130 * This blocking function makes an atomic "and" between a local mask value and 139 131 * a 32 bits integer in a remote cluster. Returns only after success. 140 132 ***************************************************************************************** … … 147 139 148 140 /***************************************************************************************** 149 * This function makes an atomic "or" between a local mask value and141 * This blocking function makes an atomic "or" between a local mask value and 150 142 * a 32 bits integer in a remote cluster. Returns only after success. 151 143 ***************************************************************************************** -
trunk/hal/generic/hal_special.h
r17 r95 3 3 * 4 4 * Authors Ghassan Almaless (2008,2009,2010,2011,2012) 5 * Alain Greiner (2016 )5 * Alain Greiner (2016,2017) 6 6 * 7 7 * Copyright (c) UPMC Sorbonne Universites … … 44 44 45 45 /***************************************************************************************** 46 * This function returns the content of the calling core cycles counter register. 46 * This function returns the content of the calling core cycles counter. 47 * This cycle counter is reset when the core is initialised (at reboot). 48 * If the hardware counter is not a 64 bits register, this function is in charge 49 * of handling overflow. 47 50 ****************************************************************************************/ 48 uint 32_t hal_time_stamp();51 uint64_t hal_time_stamp(); 49 52 50 53 /***************************************************************************************** -
trunk/hal/generic/hal_uspace.h
r23 r95 31 31 // 32 32 // 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. 35 36 ////////////////////////////////////////////////////////////////////////////////////////// 36 37 … … 61 62 62 63 /***************************************************************************************** 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 ****************************************************************************************/ 70 extern 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 ****************************************************************************************/ 80 extern void hal_strcpy_to_uspace( char * u_dst, 81 char * k_src ); 82 83 /***************************************************************************************** 63 84 * This function computes the length of a string in user space. 64 85 * If the kernel uses physical addresses, it activates the MMU to access the user buffer. … … 67 88 * @ return length of the string. 68 89 ****************************************************************************************/ 69 uint32_t hal_strlen_from_uspace( char 90 uint32_t hal_strlen_from_uspace( char * string ); 70 91 71 92
Note: See TracChangeset
for help on using the changeset viewer.