Changeset 8965838e in mainline
- Timestamp:
- 2006-03-15T12:21:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 97b64c9
- Parents:
- 286e03d
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/include/asm.h
r286e03d r8965838e 121 121 __address v; 122 122 123 __asm__ volatile ("and %0, %% r1, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1)));123 __asm__ volatile ("and %0, %%sp, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); 124 124 125 125 return v; 126 126 } 127 127 128 static inline void cpu_sleep(void) 129 { 130 } 131 128 132 void cpu_halt(void); 129 void cpu_sleep(void);130 133 void asm_delay_loop(__u32 t); 131 134 -
arch/ppc32/include/context.h
r286e03d r8965838e 34 34 #endif 35 35 36 #define SP_DELTA 836 #define SP_DELTA 16 37 37 38 38 struct context { -
arch/ppc32/include/interrupt.h
r286e03d r8965838e 35 35 #define VECTOR_DECREMENTER 10 36 36 37 extern void start_decrementer(void); 37 38 extern void interrupt_init(void); 38 39 -
arch/ppc32/src/asm.S
r286e03d r8965838e 31 31 .text 32 32 33 .global cpu_sleep34 33 .global iret 35 34 .global memsetb 36 35 .global memcpy 37 38 cpu_sleep:39 b cpu_sleep40 36 41 37 iret: -
arch/ppc32/src/boot/boot.S
r286e03d r8965838e 76 76 77 77 .section K_DATA_START, "aw", @progbits 78 78 79 79 .space TEMP_STACK_SIZE 80 80 end_stack: -
arch/ppc32/src/dummy.s
r286e03d r8965838e 48 48 49 49 asm_delay_loop: 50 b asm_delay_loop50 blr -
arch/ppc32/src/fpu_context.S
r286e03d r8965838e 81 81 82 82 fpu_context_save: 83 FPU_CONTEXT_STORE r384 85 mffs fr086 stfd fr0, OFFSET_FPSCR(r3)83 // FPU_CONTEXT_STORE r3 84 // 85 // mffs fr0 86 // stfd fr0, OFFSET_FPSCR(r3) 87 87 88 88 blr 89 89 90 90 fpu_context_restore: 91 FPU_CONTEXT_LOAD r392 93 lfd fr0, OFFSET_FPSCR(r3)94 mtfsf 7, fr091 // FPU_CONTEXT_LOAD r3 92 // 93 // lfd fr0, OFFSET_FPSCR(r3) 94 // mtfsf 7, fr0 95 95 96 96 blr -
arch/ppc32/src/interrupt.c
r286e03d r8965838e 34 34 #include <print.h> 35 35 36 37 void start_decrementer(void) 38 { 39 asm volatile ( 40 "mtdec %0\n" 41 :: "r" (1000) 42 ); 43 } 44 45 36 46 static void exception_decrementer(int n, istate_t *istate) 37 47 { 38 48 clock(); 49 start_decrementer(); 39 50 } 40 51 -
arch/ppc32/src/ppc32.c
r286e03d r8965838e 36 36 { 37 37 /* Initialize dispatch table */ 38 interrupt_init(); 38 interrupt_init(); 39 40 /* Start decrementer */ 41 start_decrementer(); 39 42 40 43 ppc32_console_init(); … … 58 61 { 59 62 } 63 -
generic/src/proc/scheduler.c
r286e03d r8965838e 284 284 if (atomic_get(&haltstate)) 285 285 halt(); 286 286 287 287 if (THREAD) { 288 288 spinlock_lock(&THREAD->lock); … … 296 296 spinlock_unlock(&THREAD->lock); 297 297 interrupts_restore(THREAD->saved_context.ipl); 298 298 299 return; 299 300 } … … 343 344 { 344 345 int priority; 345 346 346 347 ASSERT(CPU != NULL); 347 348 348 349 if (THREAD) { 349 350 /* must be run after the switch to scheduler stack */
Note:
See TracChangeset
for help on using the changeset viewer.