Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/swtch64.S
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | ENTRY(cpu_switch) | ||||
mr %r14,%r3 /* Copy the old thread ptr... */ | mr %r14,%r3 /* Copy the old thread ptr... */ | ||||
mr %r13,%r4 /* and the new thread ptr in curthread*/ | mr %r13,%r4 /* and the new thread ptr in curthread*/ | ||||
mr %r16,%r5 /* and the new lock */ | mr %r16,%r5 /* and the new lock */ | ||||
mr %r17,%r6 /* and the PCB */ | mr %r17,%r6 /* and the PCB */ | ||||
stdu %r1,-48(%r1) | stdu %r1,-48(%r1) | ||||
/* Keep this next section in sync with cpu_save_thread_regs()! */ | |||||
lwz %r18, PCB_FLAGS(%r17) | lwz %r18, PCB_FLAGS(%r17) | ||||
andi. %r7, %r18, PCB_CFSCR | andi. %r7, %r18, PCB_CFSCR | ||||
beq 1f | beq 1f | ||||
mfspr %r6, SPR_FSCR | mfspr %r6, SPR_FSCR | ||||
std %r6, PCB_FSCR(%r17) | std %r6, PCB_FSCR(%r17) | ||||
save_ebb: | save_ebb: | ||||
andi. %r0, %r6, FSCR_EBB | andi. %r0, %r6, FSCR_EBB | ||||
beq save_lm | beq save_lm | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |