Changeset 2d43f3e in mainline for generic/src/mm/slab.c
- Timestamp:
- 2006-02-02T15:04:41Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc504ef2
- Parents:
- a294ad0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/slab.c
ra294ad0 r2d43f3e 87 87 88 88 /* Fill in slab structures */ 89 /* TODO: some better way of accessing the frame, although 90 * the optimizer might optimize the division out :-/ */ 89 /* TODO: some better way of accessing the frame */ 91 90 for (i=0; i< (1<<cache->order); i++) { 92 91 ADDR2FRAME(zone, (__address)(data+i*PAGE_SIZE))->parent = slab; … … 145 144 slab = obj2slab(obj); 146 145 147 spinlock_lock( cache->lock);146 spinlock_lock(&cache->lock); 148 147 149 148 *((int *)obj) = slab->nextavail; … … 166 165 } 167 166 168 spinlock_unlock( cache->lock);167 spinlock_unlock(&cache->lock); 169 168 170 169 return frames;
Note:
See TracChangeset
for help on using the changeset viewer.