Rev 1495 | Rev 1587 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1495 | Rev 1544 | ||
---|---|---|---|
Line 542... | Line 542... | ||
542 | 542 | ||
543 | src_size = src_area->pages * PAGE_SIZE; |
543 | src_size = src_area->pages * PAGE_SIZE; |
544 | src_flags = src_area->flags; |
544 | src_flags = src_area->flags; |
545 | src_backend = src_area->backend; |
545 | src_backend = src_area->backend; |
546 | src_backend_data = src_area->backend_data; |
546 | src_backend_data = src_area->backend_data; |
- | 547 | ||
- | 548 | /* Share the cacheable flag from the original mapping */ |
|
- | 549 | if (src_flags & AS_AREA_CACHEABLE) |
|
- | 550 | dst_flags_mask |= AS_AREA_CACHEABLE; |
|
547 | 551 | ||
548 | if (src_size != acc_size || (src_flags & dst_flags_mask) != dst_flags_mask) { |
552 | if (src_size != acc_size || (src_flags & dst_flags_mask) != dst_flags_mask) { |
549 | mutex_unlock(&src_area->lock); |
553 | mutex_unlock(&src_area->lock); |
550 | mutex_unlock(&src_as->lock); |
554 | mutex_unlock(&src_as->lock); |
551 | interrupts_restore(ipl); |
555 | interrupts_restore(ipl); |
552 | return EPERM; |
556 | return EPERM; |