Changeset ba2be23 in mainline
- Timestamp:
- 2013-09-09T23:34:09Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 285589b
- Parents:
- e2a0d76
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/as.h
re2a0d76 rba2be23 250 250 extern int as_area_change_flags(as_t *, unsigned int, uintptr_t); 251 251 252 //TODO REMOVE!253 extern as_area_t * find_locked_area(as_t *as, uintptr_t va);254 255 252 extern unsigned int as_area_get_flags(as_area_t *); 256 253 extern bool as_area_check_access(as_area_t *, pf_access_t); -
kernel/generic/src/ddi/ddi.c
re2a0d76 rba2be23 361 361 NO_TRACE static int dmamem_unmap_anonymous(uintptr_t virt) 362 362 { 363 // TODO: This is an ugly hack 364 as_t *as = TASK->as; 365 366 mutex_lock(&as->lock); 367 as_area_t *area = find_locked_area(as, virt); 368 if (!area) { 369 mutex_unlock(&as->lock); 370 return ENOENT; 371 } 372 frame_free_noreserve(area->backend_data.base); 373 area->backend_data.base = 0; 374 area->backend_data.frames = 0; 375 mutex_unlock(&area->lock); 376 mutex_unlock(&as->lock); 377 378 return as_area_destroy(as, virt); 363 // TODO: implement unlocking & unmap 364 return EOK; 379 365 } 380 366 -
kernel/generic/src/mm/as.c
re2a0d76 rba2be23 672 672 673 673 return NULL; 674 }675 676 /** UGLY! UGLY! UGLY! */677 // TODO: REMOVE ASAP!678 as_area_t * find_locked_area(as_t *as, uintptr_t va)679 {680 return find_area_and_lock(as, va);681 674 } 682 675
Note:
See TracChangeset
for help on using the changeset viewer.