Changeset ca21f1e2 in mainline
- Timestamp:
- 2018-11-22T17:09:51Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3612e9f, 392f0e7, 3aa24ae8, d708088
- Parents:
- 21d3201
- git-author:
- Jakub Jermar <jakub@…> (2018-11-22 17:09:47)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-22 17:09:51)
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/as.h
r21d3201 rca21f1e2 268 268 269 269 extern as_t *as_create(unsigned int); 270 extern void as_destroy(as_t *);271 270 extern void as_hold(as_t *); 272 271 extern void as_release(as_t *); -
kernel/generic/src/mm/as.c
r21d3201 rca21f1e2 187 187 * 188 188 */ 189 void as_destroy(as_t *as)189 static void as_destroy(as_t *as) 190 190 { 191 191 DEADLOCK_PROBE_INIT(p_asidlock); -
kernel/generic/src/proc/program.c
r21d3201 rca21f1e2 150 150 prg->loader_status = elf_load((elf_header_t *) image_addr, as); 151 151 if (prg->loader_status != EE_OK) { 152 as_ destroy(as);152 as_release(as); 153 153 prg->task = NULL; 154 154 prg->main_thread = NULL; … … 176 176 void *loader = program_loader; 177 177 if (!loader) { 178 as_ destroy(as);178 as_release(as); 179 179 log(LF_OTHER, LVL_ERROR, 180 180 "Cannot spawn loader as none was registered"); … … 184 184 prg->loader_status = elf_load((elf_header_t *) program_loader, as); 185 185 if (prg->loader_status != EE_OK) { 186 as_ destroy(as);186 as_release(as); 187 187 log(LF_OTHER, LVL_ERROR, "Cannot spawn loader (%s)", 188 188 elf_error(prg->loader_status));
Note:
See TracChangeset
for help on using the changeset viewer.