Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/swtch32.S
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | ENTRY(fork_trampoline) | ||||
lwz %r3,CF_FUNC(%r1) | lwz %r3,CF_FUNC(%r1) | ||||
lwz %r4,CF_ARG0(%r1) | lwz %r4,CF_ARG0(%r1) | ||||
lwz %r5,CF_ARG1(%r1) | lwz %r5,CF_ARG1(%r1) | ||||
bl fork_exit | bl fork_exit | ||||
addi %r1,%r1,CF_SIZE-FSP /* Allow 8 bytes in front of | addi %r1,%r1,CF_SIZE-FSP /* Allow 8 bytes in front of | ||||
trapframe to simulate FRAME_SETUP | trapframe to simulate FRAME_SETUP | ||||
does when allocating space for | does when allocating space for | ||||
a frame pointer/saved LR */ | a frame pointer/saved LR */ | ||||
#ifdef __SPE__ | |||||
li %r3,SPEFSCR_FINVE|SPEFSCR_FDBZE|SPEFSCR_FUNFE|SPEFSCR_FOVFE | |||||
mtspr SPR_SPEFSCR, %r3 | |||||
#endif | |||||
b trapexit | b trapexit |