Changeset ee454eb in mainline for kernel/arch/sparc64/src/proc/scheduler.c
- Timestamp:
- 2006-08-30T15:50:29Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- beb3926a
- Parents:
- e11ae91
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/scheduler.c
re11ae91 ree454eb 79 79 */ 80 80 ASSERT(THREAD->arch.uspace_window_buffer); 81 uintptr_t uw_buf = (uintptr_t) THREAD->arch.uspace_window_buffer;81 uintptr_t uw_buf = ALIGN_DOWN((uintptr_t) THREAD->arch.uspace_window_buffer, PAGE_SIZE); 82 82 if (!overlaps(uw_buf, PAGE_SIZE, base, 1<<KERNEL_PAGE_WIDTH)) { 83 83 /* 84 84 * The buffer is not covered by the 4M locked kernel DTLB entry. 85 85 */ 86 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (uintptr_t)uw_buf);86 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, uw_buf); 87 87 dtlb_insert_mapping(uw_buf, KA2PA(uw_buf), PAGESIZE_8K, true, true); 88 88 } … … 127 127 flushw(); /* force all userspace windows into memory */ 128 128 129 uintptr_t uw_buf = (uintptr_t) THREAD->arch.uspace_window_buffer;129 uintptr_t uw_buf = ALIGN_DOWN((uintptr_t) THREAD->arch.uspace_window_buffer, PAGE_SIZE); 130 130 if (!overlaps(uw_buf, PAGE_SIZE, base, 1<<KERNEL_PAGE_WIDTH)) { 131 131 /* … … 134 134 * Demap it. 135 135 */ 136 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (uintptr_t)uw_buf);136 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, uw_buf); 137 137 } 138 138
Note:
See TracChangeset
for help on using the changeset viewer.