- Timestamp:
- 2005-09-23T22:54:45Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 48a02ef
- Parents:
- 4841104
- Location:
- include/mm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/mm/frame.h
r4841104 radecf496 53 53 count_t refcount; /**< when == 0, the frame is in free list */ 54 54 link_t link; /**< link to zone free list when refcount == 0 */ 55 } __attribute__ ((packed));55 }; 56 56 57 57 extern spinlock_t zone_head_lock; /**< this lock protects zone_head list */ -
include/mm/heap.h
r4841104 radecf496 33 33 #include <typedefs.h> 34 34 35 #define malloc(size) early_malloc(size) 36 #define free(ptr) early_free(ptr) 37 35 38 struct chunk { 36 39 int used; … … 41 44 }; 42 45 43 extern void heap_init(__address heap, size_t size);46 extern void early_heap_init(__address heap, size_t size); 44 47 45 extern void * malloc(size_t size);46 extern void free(void *ptr);48 extern void *early_malloc(size_t size); 49 extern void early_free(void *ptr); 47 50 48 51 #endif
Note:
See TracChangeset
for help on using the changeset viewer.