Changeset 6ba143d in mainline for src/mm/heap.c
- Timestamp:
- 2005-05-11T20:23:07Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a27d63
- Parents:
- 7eb01623
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mm/heap.c
r7eb01623 r6ba143d 43 43 static spinlock_t heaplock; 44 44 45 void heap_init(__address heap, intsize)45 void heap_init(__address heap, __u32 size) 46 46 { 47 47 spinlock_initialize(&heaplock); 48 memsetb(heap, size,0);48 memsetb(heap, size, 0); 49 49 chunk0 = (chunk_t *) heap; 50 50 chunk0->used = 0; … … 57 57 * Uses first-fit algorithm. 58 58 */ 59 void *malloc( int size)59 void *malloc(size_t size) 60 60 { 61 61 pri_t pri;
Note:
See TracChangeset
for help on using the changeset viewer.