Changeset 132ab5d1 in mainline for kernel/generic/src/mm/as.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    9090 *
    9191 */
    92 static slab_cache_t *as_slab;
     92static slab_cache_t *as_cache;
    9393
    9494/** ASID subsystem lock.
     
    131131        as_arch_init();
    132132       
    133         as_slab = slab_cache_create("as_t", sizeof(as_t), 0,
     133        as_cache = slab_cache_create("as_t", sizeof(as_t), 0,
    134134            as_constructor, as_destructor, SLAB_CACHE_MAGDEFERRED);
    135135       
     
    153153as_t *as_create(unsigned int flags)
    154154{
    155         as_t *as = (as_t *) slab_alloc(as_slab, 0);
     155        as_t *as = (as_t *) slab_alloc(as_cache, 0);
    156156        (void) as_create_arch(as, 0);
    157157       
     
    254254#endif
    255255       
    256         slab_free(as_slab, as);
     256        slab_free(as_cache, as);
    257257}
    258258
     
    833833                            btree_node_t, leaf_link);
    834834                       
    835                         if ((cond = (bool) node->keys)) {
     835                        if ((cond = (node->keys != 0))) {
    836836                                uintptr_t ptr = node->key[node->keys - 1];
    837837                                size_t node_size =
Note: See TracChangeset for help on using the changeset viewer.