Changeset c993e45 in mainline for kernel/generic/src/mm/as.c
- Timestamp:
- 2007-02-11T22:48:43Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bea09de6
- Parents:
- bd1deed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
rbd1deed rc993e45 88 88 */ 89 89 as_operations_t *as_operations = NULL; 90 #endif91 90 92 91 /** … … 94 93 */ 95 94 static slab_cache_t *as_slab; 95 #endif 96 96 97 97 /** … … 116 116 static void sh_info_remove_reference(share_info_t *sh_info); 117 117 118 #ifndef __OBJC__ 118 119 static int as_constructor(void *obj, int flags) 119 120 { … … 135 136 return as_destructor_arch(as); 136 137 } 138 #endif 137 139 138 140 /** Initialize address space subsystem. */ … … 140 142 { 141 143 as_arch_init(); 142 144 145 #ifndef __OBJC__ 143 146 as_slab = slab_cache_create("as_slab", sizeof(as_t), 0, 144 147 as_constructor, as_destructor, SLAB_CACHE_MAGDEFERRED); 148 #endif 145 149 146 150 AS_KERNEL = as_create(FLAG_AS_KERNEL); … … 158 162 as_t *as; 159 163 164 #ifdef __OBJC__ 165 as = [as_t new]; 166 link_initialize(&as->inactive_as_with_asid_link); 167 mutex_initialize(&as->lock); 168 (void) as_constructor_arch(as, flags); 169 #else 160 170 as = (as_t *) slab_alloc(as_slab, 0); 171 #endif 161 172 (void) as_create_arch(as, 0); 162 173 … … 229 240 230 241 interrupts_restore(ipl); 231 242 243 #ifdef __OBJC__ 244 [as free]; 245 #else 232 246 slab_free(as_slab, as); 247 #endif 233 248 } 234 249
Note:
See TracChangeset
for help on using the changeset viewer.