Changeset 541 for soft/giet_vm/giet_libs
- Timestamp:
- Mar 30, 2015, 6:21:31 PM (10 years ago)
- Location:
- soft/giet_vm/giet_libs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/malloc.c
r468 r541 261 261 } 262 262 263 // initializes the heap if first access263 // checking initialization 264 264 if ( heap[x][y].init != HEAP_INITIALIZED ) 265 265 { 266 heap_init( x , y);266 giet_exit("ERROR in malloc() : heap not initialized\n"); 267 267 } 268 268 -
soft/giet_vm/giet_libs/malloc.h
r461 r541 90 90 ///////// user functions ///////////////// 91 91 92 extern void heap_init( unsigned int x, 93 unsigned int y ); 94 92 95 extern void* malloc( unsigned int size ); 93 96 -
soft/giet_vm/giet_libs/user_barrier.c
r508 r541 303 303 304 304 asm volatile( "addu $2, %1, $0 \n" 305 " sqt_llsc:\n"305 "1234: \n" 306 306 "ll $8, 0($2) \n" 307 307 "addi $9, $8, -1 \n" 308 308 "sc $9, 0($2) \n" 309 "beqz $9, sqt_llsc\n"309 "beqz $9, 1234b \n" 310 310 "addu %0, $8, $0 \n" 311 311 : "=r" (count) … … 337 337 // input: expected sense value (expected) 338 338 unsigned int* psense = (unsigned int *)&node->sense; 339 asm volatile ( " sqt_sense:\n"339 asm volatile ( "5678: \n" 340 340 "lw $3, 0(%0) \n" 341 "bne $3, %1, sqt_sense\n"341 "bne $3, %1, 5678b \n" 342 342 : 343 343 : "r"(psense), "r"(expected)
Note: See TracChangeset
for help on using the changeset viewer.