Changeset a0d74fd in mainline for arch/sparc64/src/proc/scheduler.c
- Timestamp:
- 2006-03-01T11:07:04Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ad03fe
- Parents:
- 2c49fbbe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/src/proc/scheduler.c
r2c49fbbe ra0d74fd 31 31 #include <arch.h> 32 32 #include <arch/mm/tlb.h> 33 #include <arch/mm/page.h> 33 34 #include <config.h> 34 35 #include <align.h> … … 39 40 __address base; 40 41 41 base = ALIGN_DOWN(config.base, 4*1024*1024);42 base = ALIGN_DOWN(config.base, 1<<KERNEL_PAGE_WIDTH); 42 43 43 if ((__address) THREAD->kstack < base || (__address) THREAD->kstack > base + 4*1024*1024) {44 if ((__address) THREAD->kstack < base || (__address) THREAD->kstack > base + (1<<KERNEL_PAGE_WIDTH)) { 44 45 /* 45 46 * Kernel stack of this thread is not locked in DTLB. … … 48 49 */ 49 50 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (__address) THREAD->kstack); 50 dtlb_insert_mapping((__address) THREAD->kstack, (__address) THREAD->kstack, PAGESIZE_8K, true, true);51 dtlb_insert_mapping((__address) THREAD->kstack, KA2PA(THREAD->kstack), PAGESIZE_8K, true, true); 51 52 } 52 53 } … … 57 58 __address base; 58 59 59 base = ALIGN_DOWN(config.base, 4*1024*1024);60 base = ALIGN_DOWN(config.base, 1<<KERNEL_PAGE_WIDTH); 60 61 61 if ((__address) THREAD->kstack < base || (__address) THREAD->kstack > base + 4*1024*1024) {62 if ((__address) THREAD->kstack < base || (__address) THREAD->kstack > base + (1<<KERNEL_PAGE_WIDTH)) { 62 63 /* 63 64 * Kernel stack of this thread is locked in DTLB.
Note:
See TracChangeset
for help on using the changeset viewer.