Changeset cc85fb9 in mainline
- Timestamp:
- 2007-04-19T18:23:31Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b662f8c
- Parents:
- 4365d10
- Location:
- kernel
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/barrier.h
r4365d10 rcc85fb9 40 40 */ 41 41 #define CS_ENTER_BARRIER() \ 42 asm volatile ( \42 asm volatile ( \ 43 43 "membar #LoadLoad | #LoadStore\n" \ 44 44 ::: "memory" \ 45 45 ) 46 46 #define CS_LEAVE_BARRIER() \ 47 asm volatile ( \47 asm volatile ( \ 48 48 "membar #StoreStore\n" \ 49 49 "membar #LoadStore\n" \ -
kernel/arch/sparc64/src/cpu/cpu.c
r4365d10 rcc85fb9 64 64 if (mid == CPU->arch.mid) { 65 65 prop = ofw_tree_getprop(node, 66 66 "clock-frequency"); 67 67 if (prop && prop->value) 68 68 clock_frequency = *((uint32_t *) 69 69 prop->value); 70 70 } 71 71 } -
kernel/arch/sparc64/src/mm/as.c
r4365d10 rcc85fb9 67 67 int order = fnzb32(((ITSB_ENTRY_COUNT + DTSB_ENTRY_COUNT) * 68 68 sizeof(tsb_entry_t)) >> FRAME_WIDTH); 69 69 70 uintptr_t tsb = (uintptr_t) frame_alloc(order, flags | FRAME_KA); 70 71 … … 75 76 as->arch.dtsb = (tsb_entry_t *) (tsb + ITSB_ENTRY_COUNT * 76 77 sizeof(tsb_entry_t)); 78 77 79 memsetb((uintptr_t) as->arch.itsb, 78 80 (ITSB_ENTRY_COUNT + DTSB_ENTRY_COUNT) * sizeof(tsb_entry_t), 0); -
kernel/arch/sparc64/src/proc/scheduler.c
r4365d10 rcc85fb9 63 63 * before it explicitly uses %g7. 64 64 */ 65 uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE 66 - (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, 67 STACK_ALIGNMENT)); 65 uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE - 66 (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)); 68 67 write_to_ig_g6(sp); 69 68 write_to_ag_g6(sp); -
kernel/arch/sparc64/src/proc/thread.c
r4365d10 rcc85fb9 56 56 */ 57 57 frame_free(KA2PA(ALIGN_DOWN((uintptr_t) 58 58 t->arch.uspace_window_buffer, PAGE_SIZE))); 59 59 } 60 60 } … … 76 76 * belonging to a killed thread. 77 77 */ 78 79 78 t->arch.uspace_window_buffer = (uint8_t *) ALIGN_DOWN(uw_buf, 79 PAGE_SIZE); 80 80 } 81 81 } -
kernel/arch/sparc64/src/smp/ipi.c
r4365d10 rcc85fb9 75 75 76 76 do { 77 asi_u64_write(ASI_UDB_INTR_W, ASI_UDB_INTR_W_DATA_0, (uintptr_t)78 func);77 asi_u64_write(ASI_UDB_INTR_W, ASI_UDB_INTR_W_DATA_0, 78 (uintptr_t) func); 79 79 asi_u64_write(ASI_UDB_INTR_W, ASI_UDB_INTR_W_DATA_1, 0); 80 80 asi_u64_write(ASI_UDB_INTR_W, ASI_UDB_INTR_W_DATA_2, 0); -
kernel/arch/sparc64/src/smp/smp.c
r4365d10 rcc85fb9 101 101 if (waitq_sleep_timeout(&ap_completion_wq, 1000000, SYNCH_FLAGS_NONE) == ESYNCH_TIMEOUT) 102 102 printf("%s: waiting for processor (mid = %d) timed out\n", 103 103 __FUNCTION__, mid); 104 104 } 105 105 } -
kernel/generic/src/lib/memstr.c
r4365d10 rcc85fb9 131 131 char *orig = dest; 132 132 133 while ((*(dest++) = *(src++))); 133 while ((*(dest++) = *(src++))) 134 ; 134 135 return orig; 135 136 }
Note:
See TracChangeset
for help on using the changeset viewer.