Changes in kernel/generic/src/mm/as.c [63e27ef:c81132d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r63e27ef rc81132d 90 90 * 91 91 */ 92 static slab_cache_t *as_ slab;92 static slab_cache_t *as_cache; 93 93 94 94 /** ASID subsystem lock. … … 131 131 as_arch_init(); 132 132 133 as_ slab= slab_cache_create("as_t", sizeof(as_t), 0,133 as_cache = slab_cache_create("as_t", sizeof(as_t), 0, 134 134 as_constructor, as_destructor, SLAB_CACHE_MAGDEFERRED); 135 135 … … 153 153 as_t *as_create(unsigned int flags) 154 154 { 155 as_t *as = (as_t *) slab_alloc(as_ slab, 0);155 as_t *as = (as_t *) slab_alloc(as_cache, 0); 156 156 (void) as_create_arch(as, 0); 157 157 … … 254 254 #endif 255 255 256 slab_free(as_ slab, as);256 slab_free(as_cache, as); 257 257 } 258 258 … … 833 833 btree_node_t, leaf_link); 834 834 835 if ((cond = ( bool) node->keys)) {835 if ((cond = (node->keys != 0))) { 836 836 uintptr_t ptr = node->key[node->keys - 1]; 837 837 size_t node_size =
Note:
See TracChangeset
for help on using the changeset viewer.