Changeset 7f1c620 in mainline for generic/src/mm/slab.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/slab.c
r991779c5 r7f1c620 550 550 cache->mag_cache = malloc(sizeof(slab_mag_cache_t)*config.cpu_count,0); 551 551 for (i=0; i < config.cpu_count; i++) { 552 memsetb(( __address)&cache->mag_cache[i],552 memsetb((uintptr_t)&cache->mag_cache[i], 553 553 sizeof(cache->mag_cache[i]), 0); 554 554 spinlock_initialize(&cache->mag_cache[i].lock, … … 570 570 ipl_t ipl; 571 571 572 memsetb(( __address)cache, sizeof(*cache), 0);572 memsetb((uintptr_t)cache, sizeof(*cache), 0); 573 573 cache->name = name; 574 574 575 if (align < sizeof( __native))576 align = sizeof( __native);575 if (align < sizeof(unative_t)) 576 align = sizeof(unative_t); 577 577 size = ALIGN_UP(size, align); 578 578 … … 821 821 "slab_magazine", 822 822 sizeof(slab_magazine_t)+SLAB_MAG_SIZE*sizeof(void*), 823 sizeof( __address),823 sizeof(uintptr_t), 824 824 NULL, NULL, 825 825 SLAB_CACHE_NOMAGAZINE | SLAB_CACHE_SLINSIDE); … … 828 828 "slab_cache", 829 829 sizeof(slab_cache_cache), 830 sizeof( __address),830 sizeof(uintptr_t), 831 831 NULL, NULL, 832 832 SLAB_CACHE_NOMAGAZINE | SLAB_CACHE_SLINSIDE);
Note:
See TracChangeset
for help on using the changeset viewer.