URL
https://opencores.org/ocsvn/plasma/plasma/trunk
Subversion Repositories plasma
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 433 to Rev 434
- ↔ Reverse comparison
Rev 433 → Rev 434
/plasma/trunk/kernel/rtos.c
229,7 → 229,8
HeapNode_t *bp, *node; |
|
//UartPrintfCritical("OS_HeapFree(0x%x)\n", block); |
assert(block); |
if(block == NULL) |
return; |
bp = (HeapNode_t*)block - 1; //point to block header |
heap = (OS_Heap_t*)bp->next; |
assert(heap->magic == HEAP_MAGIC); |
1332,9 → 1333,12
HeapArray[0] = OS_HeapCreate("Heap", heapStorage, bytes); |
HeapArray[1] = HeapArray[0]; |
#ifndef WIN32 |
HeapArray[6] = OS_HeapCreate("2nd", (uint8*)RAM_EXTERNAL_BASE + |
0x180000, 1024*512); |
OS_HeapAlternate(HeapArray[0], HeapArray[6]); |
HeapArray[7] = OS_HeapCreate("Alt", (uint8*)RAM_EXTERNAL_BASE + |
RAM_EXTERNAL_SIZE*2, 1024*1024*60); |
OS_HeapAlternate(HeapArray[0], HeapArray[7]); |
OS_HeapAlternate(HeapArray[6], HeapArray[7]); |
#endif |
SemaphoreSleep = OS_SemaphoreCreate("Sleep", 0); |
SemaphoreRelease = OS_SemaphoreCreate("Release", 1); |