Changeset e32e092 in mainline for kernel/generic/src/mm/slab.c
- Timestamp:
- 2008-06-06T07:34:21Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb1c0a3
- Parents:
- 40257f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/slab.c
r40257f5 re32e092 560 560 cache->mag_cache = malloc(sizeof(slab_mag_cache_t) * config.cpu_count,0); 561 561 for (i = 0; i < config.cpu_count; i++) { 562 memsetb((uintptr_t)&cache->mag_cache[i], 563 sizeof(cache->mag_cache[i]), 0); 562 memsetb(&cache->mag_cache[i], sizeof(cache->mag_cache[i]), 0); 564 563 spinlock_initialize(&cache->mag_cache[i].lock, "slab_maglock_cpu"); 565 564 } … … 579 578 ipl_t ipl; 580 579 581 memsetb( (uintptr_t)cache, sizeof(*cache), 0);580 memsetb(cache, sizeof(*cache), 0); 582 581 cache->name = name; 583 582
Note:
See TracChangeset
for help on using the changeset viewer.