Changeset 0af7a09 in mainline for kernel/arch/sparc64/src/cpu/cpu.c
- Timestamp:
- 2006-12-21T08:02:01Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b84ce45
- Parents:
- 730376d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/cpu/cpu.c
r730376d r0af7a09 41 41 #include <arch/types.h> 42 42 #include <arch/drivers/tick.h> 43 #include <arch/mm/page.h>44 #include <arch/mm/tlb.h>45 #include <macros.h>46 43 47 44 /** Perform sparc64 specific initialization of the processor structure for the … … 81 78 CPU->arch.clock_frequency = clock_frequency; 82 79 tick_init(); 83 84 /*85 * Lock CPU stack in DTLB.86 */87 uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH);88 89 if (!overlaps((uintptr_t) CPU->stack, PAGE_SIZE, base, (1 <<90 KERNEL_PAGE_WIDTH))) {91 /*92 * Kernel stack of this processor is not locked in DTLB.93 * First, demap any already existing mappings.94 * Second, create a locked mapping for it.95 */96 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_NUCLEUS, (uintptr_t)97 CPU->stack);98 dtlb_insert_mapping((uintptr_t) CPU->stack, KA2PA(CPU->stack),99 PAGESIZE_8K, true, true);100 }101 80 } 102 81
Note:
See TracChangeset
for help on using the changeset viewer.