Changeset e32e092 in mainline for kernel/generic/src/mm/slab.c


Ignore:
Timestamp:
2008-06-06T07:34:21Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb1c0a3
Parents:
40257f5
Message:

Declare arguments for memstr.h operations as pointers instead of uintptr_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/slab.c

    r40257f5 re32e092  
    560560        cache->mag_cache = malloc(sizeof(slab_mag_cache_t) * config.cpu_count,0);
    561561        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);
    564563                spinlock_initialize(&cache->mag_cache[i].lock, "slab_maglock_cpu");
    565564        }
     
    579578        ipl_t ipl;
    580579
    581         memsetb((uintptr_t)cache, sizeof(*cache), 0);
     580        memsetb(cache, sizeof(*cache), 0);
    582581        cache->name = name;
    583582
Note: See TracChangeset for help on using the changeset viewer.