Changeset 680 for soft/giet_vm/giet_libs/malloc.c
- Timestamp:
- Jul 29, 2015, 5:52:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/malloc.c
r678 r680 55 55 unsigned int iter; 56 56 57 giet_ shr_printf("\nUser Heap[%d][%d] base = %x / size = %x\n", x , y ,57 giet_tty_printf("\nUser Heap[%d][%d] base = %x / size = %x\n", x , y , 58 58 heap[x][y].heap_base, heap[x][y].heap_size ); 59 for ( id = 6 ; id < 28; id++ )59 for ( id = 0 ; id < 32 ; id++ ) 60 60 { 61 61 next = heap[x][y].free[id]; 62 giet_ shr_printf(" - free[%d] = " , id );62 giet_tty_printf(" - free[%d] = " , id ); 63 63 iter = 0; 64 64 while ( next != 0 ) 65 65 { 66 giet_ shr_printf("%x | ", next );66 giet_tty_printf("%x | ", next ); 67 67 next = (*(unsigned int*)next); 68 68 iter++; 69 69 } 70 giet_ shr_printf("0\n");70 giet_tty_printf("0\n"); 71 71 } 72 72 } // end display_free_array() … … 93 93 94 94 #if GIET_DEBUG_USER_MALLOC 95 giet_ shr_printf("\n[DEBUG USER_MALLOC] Starting Heap[%d][%d] initialisation /"95 giet_tty_printf("\n[DEBUG USER_MALLOC] Starting Heap[%d][%d] initialisation /" 96 96 " base = %x / size = %x\n", x, y, heap_base, heap_size ); 97 97 #endif … … 156 156 157 157 #if GIET_DEBUG_USER_MALLOC 158 giet_ shr_printf("\n[DEBUG USER_MALLOC] Completing Heap[%d][%d] initialisation\n", x, y );158 giet_tty_printf("\n[DEBUG USER_MALLOC] Completing Heap[%d][%d] initialisation\n", x, y ); 159 159 display_free_array(x,y); 160 160 #endif … … 226 226 227 227 #if GIET_DEBUG_USER_MALLOC 228 giet_ shr_printf("\n[DEBUG USER_MALLOC] request for Heap[%d][%d] / size = %x\n",228 giet_tty_printf("\n[DEBUG USER_MALLOC] request for Heap[%d][%d] / size = %x\n", 229 229 x, y, size ); 230 230 #endif … … 289 289 290 290 #if GIET_DEBUG_USER_MALLOC 291 giet_ shr_printf("\n[DEBUG USER_MALLOC] allocated block from heap[%d][%d] : "291 giet_tty_printf("\n[DEBUG USER_MALLOC] allocated block from heap[%d][%d] : " 292 292 "base = %x / size = %x\n", x , y , base , size ); 293 293 display_free_array(x,y); … … 384 384 385 385 #if GIET_DEBUG_USER_MALLOC 386 giet_ shr_printf("\n[DEBUG USER_MALLOC] Free for vaddr = %x / x = %d / y = %d\n",386 giet_tty_printf("\n[DEBUG USER_MALLOC] Free for vaddr = %x / x = %d / y = %d\n", 387 387 (unsigned int)ptr, x, y ); 388 388 #endif
Note: See TracChangeset
for help on using the changeset viewer.