Changeset 637 for trunk/libs/mini-libc
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- Location:
- trunk/libs/mini-libc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/stdio.h
r623 r637 2 2 * stdio.h - User level <stdio> library definition. 3 3 * 4 * Author Alain Greiner (2016,2017,2018 )4 * Author Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites -
trunk/libs/mini-libc/stdlib.c
r589 r637 148 148 void * malloc( unsigned int size ) 149 149 { 150 // get cluster identifier 151 unsigned int cxy; 152 unsigned int lid; 153 get_core( &cxy , &lid ); 150 unsigned int cxy; 151 unsigned int lid; 152 153 // get cluster identifier 154 get_core_id( &cxy , &lid ); 154 155 155 156 return remote_malloc( size, cxy ); … … 160 161 unsigned int size ) 161 162 { 162 // get calling core cluster identifier 163 unsigned int cxy; 164 unsigned int lid; 165 get_core( &cxy , &lid ); 163 unsigned int cxy; 164 unsigned int lid; 165 166 // get cluster identifier 167 get_core_id( &cxy , &lid ); 166 168 167 169 return remote_calloc( count , size , cxy ); … … 172 174 unsigned int size ) 173 175 { 174 // get calling core cluster identifier 175 unsigned int cxy; 176 unsigned int lid; 177 get_core( &cxy , &lid ); 176 unsigned int cxy; 177 unsigned int lid; 178 179 // get cluster identifier 180 get_core_id( &cxy , &lid ); 178 181 179 182 return remote_realloc( ptr , size , cxy ); … … 183 186 void free( void * ptr ) 184 187 { 185 // get calling core cluster identifier 186 unsigned int cxy; 187 unsigned int lid; 188 get_core( &cxy , &lid ); 188 unsigned int cxy; 189 unsigned int lid; 190 191 // get cluster identifier 192 get_core_id( &cxy , &lid ); 189 193 190 194 remote_free( ptr , cxy );
Note: See TracChangeset
for help on using the changeset viewer.